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