Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way to do an atomic transaction rsync using cwrsync on Windows?

Meaning: I want the sync to fully complete or 'roll back' in the way that it's not being finalized, for example when a network connectivity problem occurs during a sync processs.

On the web, I found this

http://www.opensource.apple.com/source/rsync/rsync-40/rsync/support/atomic-rsync

and was wondering whether there's similar solution for cwrsync on Windows?

share|improve this question

1 Answer 1

up vote 1 down vote accepted
--delay-updates         put all updated files into place at end

I don't know if it does what you want.

Either that, or duplicate the folder before rsync, rsync the dupe, then mv. It is still efficient wrt. to network bandwidth. edit: (maybe if you andd --inplace it becomes somewhat more efficient wrt. to local I/O).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.