This is a Linux Backup Script to Backup all the needed Count.ly Settings and Databases of your Count.ly Server

It supports both Local and Remote Backups as well as Backup Rotation and can be Automated via Crontab.

The Git Repo can he found here:

https://github.com/dieskim/countly-server-backup-script

Please note that this is still a beta script.

Any pull requests and suggestion welcome!

Author: Dieskim

Installation:

1. Log in to you server via SSH as root

2. Create a folder where you would like to place the script and move into the folder

mkdir ~/countly-backup-script
cd ~/countly-backup-script

3. wget the backup script

wget https://github.com/dieskim/countly-server-backup-script/blob/master/countly-backup.sh

4. Set the script to be executable

chmod a+x countly-backup.sh

5. For remote backups set up – http://dieskim.me/2015/05/13/how-to-linux-ssh-key-password-free-automatic-config-authentication-backup-sftp-scp/

6. Edit all the setting in the top of the script.

7. Test the script via

sh -x countly-backup.sh 2>&1 | tee debug.txt

7. Add Script to Crontab to run daily

7. Add Script to Crontab to run daily

crontab -e

– Choose your editor and add the below to the crontab to run script every night at midnight – save file

00 00 * * * /path/to/countly-backup-script/countly-backup.sh
How To: Count.ly Server Backup Script – Local, Remote, Rotate – Automated Daily via Cron
Tagged on:                                                                                 

Leave a Reply

Your email address will not be published. Required fields are marked *