Syed Jahanzaib Personal Blog to Share Knowledge !

April 25, 2016

Backup your Backup on CLOUD !

Filed under: Linux Related — Syed Jahanzaib / Pinochio~:) @ 11:16 AM


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.

  1. Local Backup
  2. USB Backup
  3. CLOUD backup either on remote FTP / Google Drive / Dropbox.
  4. 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

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.


1- Create your account at Dropbox, its free

First login to 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 - "" | tar xzf -

For 64-bit, issue following command:

cd ~ && wget -O - "" | tar xzf -

Now download the DROPBOX control script

mkdir /temp
cd /temp
mv download\?dl\
chmod +x

Now start Dropbox by

/temp/ 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 to link this device.

  • Now test if Dropbox is started
/temp/ status
  • Set DROPBOX to auto start on login
/temp/ autostart y

It should be showing something like


Now you can upload your files in


Try to make any test file in this folder, and after few moments, check on Dropbox by login to


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


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.

Syed Jahanzaib !

1 Comment »

  1. […] 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 […]


    Pingback by DMASOFTLAB Radius Manager Backup Script ! | Syed Jahanzaib Personal Blog to Share Knowledge ! — February 3, 2017 @ 8:30 AM

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: