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
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
>
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