how to take least risk on rsync dir

Patrick Hsieh pahud at
Tue Apr 16 02:17:02 EST 2002

Hello list,

When rsync dir_A to dir_B, I hope I wont make any change to the original
dir_B unless the rsync procedure end withour errors, therefore, I hope
there's somethig like

rsync -av dir_A dir_B_tmp && \
mv dir_B dir_B.bkup &&
mv dir_B_tmp dir_B

This small script can ensure the minimal change time between 2 versions
of archive. Is this built in the native rsync function? Do I have to
write scripts myself?
Patrick Hsieh <pahud at>
GPG public key

More information about the rsync mailing list