Re: how to take least risk on rsync dir

2002-05-03 Thread Dave Dykstra
On Tue, Apr 16, 2002 at 05:15:45PM +0800, Patrick Hsieh wrote: > 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

RE: how to take least risk on rsync dir

2002-04-16 Thread David Bolen
Patrick Hsieh [[EMAIL PROTECTED]] writes: > 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 >

Re: how to take least risk on rsync dir

2002-04-16 Thread Patrick Hsieh
Hello John Schaaf <[EMAIL PROTECTED]>, After reading your mail, I wrote a little script: #!/bin/sh localdir=/backup/infotimes localbkupdir=/backup/infotimes_bakup remotedir=home::usrlocalinfotimes rsync -av --backup --backup-dir=$localbkupdir --delete \ $remotedir $localdir When I run this