mkdir ho
root@2[root]# ls
atime gaimlst2.txt install-report.template shit
ctime gaimlst.txt Mail symlinks.txt
C++的const类型.txt God mtime test.txt
dbootstrap_settings ho q.log
root@2[root]# ls -l | grep ho
drwxr-xr-x 2 root root 4096 2005-04-16 09:05 ho
# back system config and httpd log
DATENOW=$(date +%Y-%m-%d)
cd /
tar cfz /var/www/web/admin/etc.tgz etc
cd /var/www/web/admin
mysqldump -Q --password=jerryvim --opt -B newnet > $DATENOW-newnetdump
# backs up all files in current directory modified within last 24 hours in a tarball
cd /var/www/web/
ls -lfR > /home/jerry/file_list-$DATENOW
find . -mtime -1 -type f -print0 | xargs -0 -r tar cvfzp /home/jerry/web-$DATENOW
ls -l /home/jerry/*.tgz > /home/jerry/ls-$DATENOW
[/code:1]