If you are using command base server operating system with text support only, example ‘Ubuntu Server Edition‘ & if its hosting important application like radius billing, then its best practice to have several layers of backup. One good strategy for multi layer backup should be as following.
- Local Backup
- USB Backup
- CLOUD backup either on remote FTP / Google Drive / Dropbox.
- Offline Backup
AND ABOVE ALL, DON’T FORGET, CLUSTER/REPLICATION IS YOUR FRIEND , IT HELPS WHEN YOU ARE IN REAL TROUBLE ! 😉 ~ trust me, I am telling your from my personnel experiences z@!b
https://aacable.wordpress.com/2015/06/26/radius-redundancy-by-using-mysql-master-master-replication/
In this example I am using DROPBOX which is very convenient cloud base backup solution (Free up-to 5 GB, suitable for small size network) and can be installed on your windows / Linux / android as well. So I have Dropbox tool on my windows as well as Linux too. So I just add/remove files at one end, the changes replicate to other end automatically.
TWO STEPS INSTALLATION
1- Create your account at Dropbox, its free
First login to https://www.dropbox.com and create your account.
2- Howto install DROPBOX on UBUNTU (Tested with 12.4/16.4 server)
Quick Notes:
For 32-bit, issue following command …
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf -
For 64-bit, issue following command:
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
Now download the DROPBOX control script
mkdir /temp cd /temp wget https://www.dropbox.com/download?dl=packages/dropbox.py mv download\?dl\=packages%2Fdropbox.py dropbox.py chmod +x dropbox.py
Now start Dropbox by
/temp/dropbox.py start
It may show you a URL, copy it, and paste in your browser, your Dropbox account will be activated instantly. Something like …
This computer isn’t linked to any Dropbox account…
Please visit https://www.dropbox.com/cli_link_nonce?nonce=a16e663d712959234c83d3ed0f929 to link this device.
- Now test if Dropbox is started
/temp/dropbox.py status
- Set DROPBOX to auto start on login
/temp/dropbox.py autostart y
It should be showing something like
Now you can upload your files in
/root/Dropbox
Try to make any test file in this folder, and after few moments, check on Dropbox by login to http://www.dropbox.com
This is very useful if you want to automate your backup process and have multi layer backup system. You can schedule any cron script that can keep checking for Dropbox status and so on.
Some Syntax for DROPBOX
Dropbox command-line interface commands: Note: use dropbox help to view usage for a specific command. lansync enables or disables LAN sync stop stop dropboxd start start dropboxd filestatus get current sync status of one or more files status get current status of the dropboxd exclude ignores/excludes a directory from syncing proxy set proxy settings for Dropbox throttle set bandwidth limits for Dropbox help provide help sharelink get a shared link for a file in your dropbox puburl get public url of a file in your dropbox's public folder autostart automatically start dropbox at login ls list directory contents with current sync status update download latest version of dropbox running return whether dropbox is running
If above doesnt works for you, Read following.
Regard's Syed Jahanzaib !
[…] in local storage, you can connect your USB or secondary HDD. You can also configure cloud like DROPBOX so that copy of backup should be copied to CLOUD as well, MOST […]
LikeLike
Pingback by DMASOFTLAB Radius Manager Backup Script ! | Syed Jahanzaib Personal Blog to Share Knowledge ! — February 3, 2017 @ 8:30 AM