Backup script

Database nodes have scripts and crontab examples prepared for you to easily enable database dumps.
We also recommend to add a cron job to remove old database files and also to redirect the backup script output to a log file for easy trouble shooting. Below is a crontab example on how you can do it.

0 1 * * * find /var/lib/jelastic/backup/ -name "*.sql.bz2" -mtime +3 -exec rm {} \;
0 2 * * * /var/lib/jelastic/bin/ -m dumpall -u root -p password >> /var/lib/jelastic/backup/backup.log 2>&1
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request



Please sign in to leave a comment.