标签:
#!/bin/bash DATE=`date -d "now" +%Y%m%d` dataBackupDir=/media/2a76a963-92b1-4f74-a2c8-b7dc7a898331/music/wwwbackup tar -czvf /var/www-$DATE.tar.gz /var/www/ >/dev/null 2&>1 mv /var/www-$DATE.tar.gz $dataBackupDir
标签:
原文地址:http://www.cnblogs.com/geektown/p/5004543.html