Backing up your site
A short guide to backing up your site content over SSH.
Losing data is bad for business. This applies to your customers as well if you are building sites for them. It is critical to keep backups of any Zotonic sites you develop. This guide provides steps to enable and make effective use of Zotonic backup files.
Applies to: Zotonic 0.6 or later
Assumes: SSH Server
- Select Modules from your Zotonic admin menu
- Activate Backup
- Wait 24 hours
- From your zotonic home directory:
cd zotonic/priv/sites/yoursite>/files/backupYou should see two files that look more or less like this:
- Copy or move these to an appropiate remote store. Your local computer would do fine. The scp commands called from a back-up directory on a local machine would look like this:
scp -P <port no> -r zotonic@<your ip or url>:/<path to back up files> .Example:
scp -P 22 -r email@example.com://home/zotonic/zotonic/priv/sites/default/files/backup/ .Clearly, Step 5 could be incorporated into a chron script.
There are no troubleshooting steps available for this guide at this time. Please share any you have encountered either in the comments below or on the Zotonic Users Group.
This page is part of the Zotonic documentation, which is licensed under the Apache License 2.0.