#!/bin/bash # The remote backup process # ~~~~~~~~~~~~~~~~~~~~~~~~~ # # The backup the whole of the PostgreSQL database # is called by the user crontab '/etc/init.d/backup_firefish_db.sh' # # The backup of the Firefish 'default.yml' and the /files/ directory # is called by the sudo crontab '/etc/init.d/backup_firefish_files.sh' # # So call this in normal crontab after '/etc/init.d/backup_firefish_db.sh' rm /home/firefish/Backups/backup_firefish.zip; zip -r /home/foo/Backups/backup_firefish.zip /home/foo/Backups/firefish # # Create a file to show that the backup has successfully completed touch /home/foo/Backups/firefish_backup_created