Craft Remote Backup
Avoid that perilous sinking feeling as you wonder "did I backup?". Install our new plugin, Craft Remote Backup
Three words that nobody wants to hear:
“Did I backup?”
Backups are tedious & boring, but they should be an essential part of any developers “not losing your clients and ending up destitute” workflow.
We’ve created a plugin to help you with this workflow.
Craft Remote Backup makes it easy to create offsite remote backups from the comfort of the Craft Control Panel. Along with a few CLI commands, this gives you the ability to take regular snapshots of your database and asset volumes and rest assured that they are stored securely offsite.
Here’s a quick overview of its features. Once it’s configured, you can jump over to the utilties section to see your remote backups as well as create new ones:
If you’re more comfortable on the command line, you can use the console commands instead:
- remote-backup/database
remote-backup/database/create
remote-backup/database/list
remote-backup/database/prune
- remote-backup/volume
remote-backup/volume/create
remote-backup/volume/list
remote-backup/volume/prune
These can be used to automate your backups with Cron, or Laravel Forge:
#!/bin/bash
# A simple script that uses remote-sync to backup
/home/forge/weareferal.com/craft remote-backup/database/create
/home/forge/weareferal.com/craft remote-backup/database/prune
/home/forge/weareferal.com/craft remote-backup/volume/create
/home/forge/weareferal.com/craft remote-backup/volume/prune
/home/forge/weareferal.com/bin/backup-craft.sh
0 0 * * * /home/forge/weareferal.com/bin/backup-craft.sh
Remote Backup can also “prune” your backups. This means it will make sure to only keep a certain number of backups according to your settings, avoiding the potential for large data bills:
To learn a bit more about the plugin check out the Github page. If you want to try it out, head over to the Plugin Store page and get the trial installed. Any questions or comments? Send me an email or find me on the Craft Discord (@timmy).