Changes between Version 7 and Version 8 of LogRotate
- Timestamp:
- Oct 13, 2009, 1:29:58 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LogRotate
v7 v8 21 21 ./bin/stop 22 22 pushd ./log_servername 23 BACKUP_DIR= `date --utc +backup_%Y_%m_%d`23 BACKUP_DIR=$(date --utc +backup_%Y_%m_%d) 24 24 mkdir $BACKUP_DIR 25 25 mv *.log *.out $BACKUP_DIR 26 pushd .. 27 ./bin/start& 28 popd 26 ( cd .. && ./bin/start& ) 29 27 tar cjvf $BACKUP_DIR.tar.bz2 $BACKUP_DIR 30 28 rm -rf $BACKUP_DIR