Count.ly Server Backup Script
Countly is an innovative, real-time, open source mobile analytics application. It collects data from mobile phones, and visualizes this information to analyze mobile application usage and end-user behavior. There are two parts of Countly: the server that collects and analyzes data, and mobile SDK that sends this data (for iOS & Android).
Titanium Countly Messaging Modules
Other Countly SDK repositories;
Countly SDK Guides;
Countly Backup Guide;
This is a Linux Backup Script to Backup all the nessasary Count.ly Settings and Databases of your Count.ly Server
It supports both Local and Remote Backups as well as backup Rotation
Please note that this is still a beta script
Any pull requests and suggestion welcome!
Log in to you server via SSH as root
Create a folder where you would like to place the script and move into the folder
- wget the backup script
- Set the script to be executable
chmod a+x countly-backup.sh
For remote backups set up Linux SSH KEY Password Free Automatic Config Authentication
Edit all the setting in the top of the script.
Test the script via
sh -x countly-backup.sh 2>&1 | tee debug.txt
Add Script to Crontab to run daily
- 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