#!/bin/bash # The remote backup process # ~~~~~~~~~~~~~~~~~~~~~~~~~ # # Backup the whole of the PostgreSQL database # Is called by the user crontab '/etc/init.d/backup_calckey_db.sh' # # Backup the Calckey /files/ directory # Is called by the sudo crontab '/etc/init.d/backup_calckey_files.sh' # # So call this in normal crontab after '/etc/init.d/backup_calckey_db.sh' rm /home/foo/Backups/backup_calckey.zip; zip -r /home/foo/Backups/backup_calckey.zip /home/foo/Backups/calckey