X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=backup.sh;h=75c030841688ebc6792e64875142a11f81aabdcf;hb=035fbd1eb0d7eedee962e733517e20c9fcbb0273;hp=ac038ede42efdf24b02f809abe052d129aa39994;hpb=c2c1fcab31b083ad82ab98d5c76f2b668bba3984;p=backup.sh diff --git a/backup.sh b/backup.sh index ac038ed..75c0308 100755 --- a/backup.sh +++ b/backup.sh @@ -113,14 +113,6 @@ backup() lastcmd="" fi - #if this client has a special tar - #we need to find a better solution to this conf-issue - if [ -f $confdir/tar.$computer ] ; then - tar=`cat $confdir/tar.$computer` - else - tar=tar - fi - # expand the exclude-path for use with tar exf=`ssh root@$computer "ls ~/.backup/exclude"` @@ -135,7 +127,7 @@ backup() # Pipe the stuff over ssh to ourselves, run pee to cat the contents to a # file and build a file list, respectivly. TARFILE=$DATE.tmp - TARCMD="ssh root@$computer \"$tar --one-file-system -zcf - -C $filesystem . $lastcmd \ + TARCMD="ssh root@$computer \"tar --one-file-system -zcf - -C $filesystem . $lastcmd \ --exclude-from=$exf\" | pee \"cat > $TARFILE\" \"tar tzvf -\"" echo `date`" $computer: Running $TARCMD" >&2 eval $TARCMD > $DATE.idx @@ -258,8 +250,8 @@ do echo $DATEs > $storagedir/$computer/$sfilesystem/.date fi - # Check if we want a full backup - printf " $computer $filesystem: $confdir/fastfullbackupdag.$computer.$sfilesystem\n" + # Check if we want a full backup - Debug statement that causes noise in cron mail: + # printf " $computer $filesystem: $confdir/fastfullbackupdag.$computer.$sfilesystem\n" if [ -f $confdir/fastfullbackupdag.$computer.$sfilesystem ]; then fullbackup_min_for_this_machine=$dagermellomfulleforfast if [ "$DAY_OF_MONTH" = "`cat $confdir/fastfullbackupdag.$computer.$sfilesystem`" ]; then