Backup Configuration Reference

From Sympl Wiki
Revision as of 15:43, 19 July 2019 by Kelduum (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sympl includes a service to take and manage local backups on your server, using the flexible backup2l software, which is used due to it's simplicity and flexibility.

As with any other backups, care should be taken to ensure they are separate from the local machine to protect them from physical problems with the server, so synchronising them to another server on another network, or having a second set of third party backups is recommended.

For information on using backup2l and recovering backups, see Using backup2l.

Configuration of backup2l

The configuration for backup2l is built from the configuration snippets in /etc/sympl/backup.d/conf.d/, and covers the directories to be backed up, the destination they are stored in, and the maximum number of backups to keep.

Directory Backed Up Contains
/etc/ System configuration.
/usr/local/ Local configuration.
/root/ root users home directory.
/srv/ Sympl domains.
/home/ Other users home directories, including the sympl user.
/var/mail/ Current email spool.
/var/lib/ System libraries and data, including MySQL databases.
/var/spool/cron/ User crontab files.
/var/backups/mysql/ MySQL database dumps.

Note that if you make any changes to the configuration snippets, you will need to update the configuration by running cd /etc/sympl/backup.d ; sudo make for them to take effect.

Pre and Post Backup Tasks

Sympl also has backup2l configured to run a number of tasks before and after the backups are run, specifically checks to ensure there is sufficient space to complete a backup and taking a new dump of all the databases using sympl-sqldump.

Configuration Reference

File or Directory Used For More
/etc/sympl/backup.d/ Contains the backup configuration and support scripts. More...
/etc/sympl/backup.d/conf.d/ Contains the backup2l configuration files. More...
/etc/sympl/backup.d/pre-backup.d/ Contains scripts which are run before the backup. More...
/etc/sympl/backup.d/post-backup.d/ Contains scripts which are run after the backup has completed. More...

See also Configuration Reference for other configuration files.