Skip to navigation

Manage Backups

It's important to do backups of your site every time you update it.  If you're planning on modifying your site's templates or CSS files, it's a good idea to back up your site before you start.  

When a Pyplate site is backed up, it gets packed into a .tar.gz file.  The name of the file includes the date the backup was made in the following format:

backup_YYYY.MM.DD.HHmmss.tar.gz

Pyplate's backup page

Backups include everything in the site - content, scripts, the database, templates and the contents of the web root directory including cached pages.  

The Site backup page has a button that can be used to do a backup, and beneath that there is a table that lists all the previous backups.  These backups can be downloaded, deleted or restored.

Restoring a backup will unpack one of the archived backup files.  This will overwrite your existing website, so any changes that you made to your site since the backup was made will be lost.

Set daily backups

You can set daily backups by editing the webserver's crontab file.  In a terminal type this command:

sudo crontab -e -u www-data

This opens the crontab file for user www-data (the webserver's default user name) in a text editor.  If you want to run a backup once a day, add this line at the end of the file:

@daily /usr/share/pyplate/content/admin/backup.cgi

If you prefer weekly backups, use @weekly instead of @daily.

Share this page:

Follow me