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

cloudbackup

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

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

dropbox-status

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

results

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.

http://www.dropboxwiki.com/tips-and-tricks/install-dropbox-in-an-entirely-text-based-linux-environment

Regard's
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 […]

    Like

    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:

WordPress.com Logo

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

Google photo

You are commenting using your Google 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: