This backup tool was developed to keep the database and files safe.
Backup files are saved in the /backup
directory by default.
- First of all, edit database configuration in the
config/mysql.conf
file following this documentation. - List directories and files that need to be save in
config/files.list
. - Edit
backup.sh
and edit configuration variables in the head of the file.
To start a backup just run :
cd path-to/.../backup-data/
sh backup.sh
cron is perfect for your job. Just a simple example (at 04:00 on Monday) :
0 6 * * * root /usr/bin/bash /path-to/.../backup.sh