我正在尝试使用备份脚本来备份我的 sql 数据库和网站文件。我正在运行 Ubuntu 12.04 32 位版本和 zPanel。
还有这些变量是什么:
MYSQL="$()"
MYSQLDUMP="$()"
GZIP="$()"
我假设第一个是数据库名称。
这是脚本:
#!/bin/sh
#----------------------------------------------------------------
# Daily Backup Routine - Backup and Sync to Dropbox
# This script creates a backup using today's date, then deleted
# any backups made 3 days ago. If run every day it will ensure
# you have a week's worth of backups of your MySQL databases and
# zPanel web directories.
#
# Uses whatever Dropbox account is running on the server.
# …Run Code Online (Sandbox Code Playgroud)