Skip to content
This repository has been archived by the owner on Mar 6, 2021. It is now read-only.

Adds automatic (daily) backups #76

Merged
merged 1 commit into from
Mar 3, 2017
Merged

Adds automatic (daily) backups #76

merged 1 commit into from
Mar 3, 2017

Conversation

bravo-kernel
Copy link
Contributor

@bravo-kernel bravo-kernel commented Feb 26, 2017

This PR adds a provisioning script that installs multibackup and configures it to automatically create daily backups of useful files (stored on your local machine for safe keeping).

Enabling

To enable the automatic backups:

  1. cd to the cakebox folder on your local machine
  2. git pull
  3. vagrant reload --provision

If things went well you should see vagrant provisioning feedback similar to:

==> default: ---------------------------------------------------------------
==> default: Checking automated backups
==> default: ---------------------------------------------------------------
==> default: * Installing multibackup
==> default: Cloning into 'tar-multibackup'...
==> default: * Placing default configuration file
==> default: * Setting configuration file permissions
==> default: * Creating daily cron job
==> default: Installation completed successfully!

Configuration

Only folders specified in ~/.multibackup.conf will be included in the backups. The default configuration file will backup:

  • all app.php and .env configuration files found in /home/vagrant (recursively)
  • the full database server with all databases (using Percona Xtrabackup)
  • /etc/nginx
  • /home/vagrant/.cakebox

Good to know:

  • backups can be found on your local machine in the /.cakebox/backups folder
  • backup retention: 90 days
  • to manually start the backup run sudo multibackup inside your box
  • backups are created daily at 5:00 AM. To change:
    • edit /etc/cron.d/backup-liveconfig (visit crontab guru for help)
    • reload cron by running sudo service cron reload

Refs #16 and frdmn/tar-multibackup#4.

@bravo-kernel bravo-kernel force-pushed the automated-backups branch 3 times, most recently from c545477 to 2d6318a Compare February 27, 2017 18:45
@bravo-kernel bravo-kernel merged commit b73ef71 into dev Mar 3, 2017
@bravo-kernel bravo-kernel deleted the automated-backups branch March 3, 2017 10:43
@bravo-kernel bravo-kernel mentioned this pull request Mar 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant