- Linux
- 2008-03-21 - 更新:2014-05-28
PHP5 —–
[ /usr/local/bin/backup ]
#!/bin/sh THISDAY=`date +%F_%H-%M-%S` tar -cvzf /usr/tmp/mailbackup_"$THISDAY".tgz \ /vpopmail /var/qmail/control /usr/local/bin/php -f /var/www/html/cli/backupper.php ‐‐ \ /usr/tmp/mailbackup_"$THISDAY".tgz
[cronに登録(2日毎、午前10時に実行)]
0 10 */2 * * /usr/local/bin/backup
1,553 views