search for: bckscript

Displaying 1 result from an estimated 1 matches for "bckscript".

2009 Jun 12
1
--compare-dest= dir list ?
Hi, I would like to compare a backup dir with a directory list in --compare-dest= but I don't know how to specify this list. If a have only one dir it's ok, but if I have 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/bck...