Displaying 1 result from an estimated 1 matches for "comparedir".
2009 Jun 12
1
--compare-dest= dir list ?
...ve 2 or more dir I have an error ?
Here is my script:
#!/bin/bash
SSH_USER=
SSH_HOST=
TOBCK=/
EXCLUDES=/root/bckscript/ns200176/excludes
LOG=/root/bckscript/ns200176/rsync_$(date +'%Y-%m-%d_%H.%M.S').log
mount /dev/sda1 /mnt/bckhd01
BACKUPDIR=/mnt/bckhd01/ns200176/$(date +'%A')
COMPAREDIR=""
LIST=$(ls /mnt/bckhd01/ns200176/)
for i in $LIST; do
COMPAREDIR="$COMPAREDIR/mnt/bckhd01/ns200176.ovh.net/$i "
done
OPTS="--verbose --progress --archive --hard-links --ignore-errors
--delete-excluded --exclude-from=$EXCLUDES --delete --force
--backup-dir=$BACK...