Dropbox Server Backup

This tutorial will help you create an automatic backup on dropbox for your server.

1) Install

First, be root user by using `su` and entering your password. We'll download and install dropbox to the opt directory. Note: If you're running x64, `change lnx.x86` to `lnx.x86_64` In order to link your account with your server, run dropbox and follow the link it gives. After you log in, Dropbox will immideately start syncing. Exit the dropbox program with Ctrl+D or Ctrl+C.

2) Startup Script

Now we will set up a script so dropbox will be registered as a service. Insert this text in that file: To start dropbox automatically, run:
now start dropbox with -- OR --
You can view current status by running:

3) Backing up

Your dropbox is now mounted root's home directory (should be /root/Dropbox), so you can simply copy any file you want to that location and it will be uploaded.
For example: I really like Lasse Bunk's backup script. Follow his steps for how to use it.

About

I built the tutorial and startup script for Centos. It should work on many other flavors of Linux as well, but is most likely to work on RedHat based systems.
If you don't have a dropbox account, you can sign up for one here. They are free for up to 5 GB of storage, and it's not hard to get a bit more for free.
https://www.dropbox.com/getspace

Resources used:

Support This Site