Displaying 1 result from an estimated 1 matches for "2serverbup".
2008 Mar 02
1
Wrong uptodate
..."
OPTIONS2="--force --ignore-errors --delete --delete-excluded --checksum
-aRvv"
export PATH=$PATH:/bin:/usr/bin:/usr/local/bin
# our actual rsyncing function
a_rsync()
{
for BACKUPDIR in $BUPDIR1; do
rsync $OPTIONS1 $BACKUPDIR $ARCHIVE1/$CURRENT1 >>
/var/log/cronscripts/2serverbup.log 2>&1
done
}
b_rsync()
{
for BACKUPDIR in $BUPDIR2; do
rsync $OPTIONS2 $BACKUPDIR $ARCHIVE2/$CURRENT2 >>
/var/log/cronscripts/2serverbup.log 2>&1
done
}
.
.
.
a_rsync && b_rsync && date > /tmp/backup
set run in cron:
BASH=/bin/sh
BASH_VERSINFO=([0...