shell脚本汇总 1 以年月日命名备份文件
#!/bin/bash #createabackpackageforMysqLofballandwebofballcloud # #backupMysqLforballandwebforballcloud cd/www/web/backup_ballcloud/ year=`date+%Y` month=`date+%m` day=`date+%d` now=$year-$month-$day #createadirectoryforeverybackupfile mkdirbackup_$now #tar/www/web/ballcloud//www/wdlinux/MysqL/data/ tar-zcvfbackup_$now/backup.tar.gz/www/wdlinux/MysqL/data//www/web/ballcloud/&>/dev/null
#
原文链接:/bash/392687.html