--- sludge_scripts/backup.sh 2011/06/07 12:34:47 1.1 +++ sludge_scripts/backup.sh 2011/06/07 13:01:03 1.2 @@ -17,14 +17,14 @@ cd demandred for DIR in "${DIRS[@]}"; do /usr/bin/rsync $OPTIONS $REMOTE:$DIR . >> $LOGDIR/backup-$DATE.log 2>&1 done -cd - +cd - > /dev/null 2>&1 mkdir -p lanfear cd lanfear for DIR in "${LANFEAR_DIRS[@]}"; do /usr/bin/rsync $OPTIONS $REMOTE:$DIR . >> $LOGDIR/backup-$DATE.log 2>&1 done -cd - +cd - > /dev/null 2>&1 ## ## Compress logs after 5 days and delete logs after 6 months