It would happen to you, server crashes and you lose all your files. In my case, these were almost 40 small websites. Bummer. Fortunately, I had installed Dropbox on this server a few days before, so I could restore my users directly to another server with a handful of linux commands. First, log in via SSH as root. This can be done, for example, via the Putty program and on a Mac via, for example, the Mac Terminal.
——–
Go to the root folder and download Dropbox for Linux. This is done via the following command: (cd ~ will get you to the root folder, wget … download Dropbox for Linux) 32bit
64 bit
[code]cd ~ & wget -O – “https://www.dropbox.com/download?plat=lnx.x86_64” | Tar XZF – [/code]
——–
Run Dropbox, this is done via the following command:
Then you should see that server is not linked, and a URL. Copy the URL, open it via your browser, and follow the steps. If all went well, your server was then connected.
——–
Now set up your DirectAdmin backups, for example every night at 0:00, you are free to do this. The screenshot shows how it should be (approximately) filled in.
——–
Create a cronjob with the following value, for each night at about an hour later than the backup time. The cronjob ensures that every time after the backups are taken, the backups folder and the Dropbox folder are synchronized. Then Dropbox’s still-running process ensures that that folder is synced with Dropbox again.
——–
Your Dropbox backups should now be working and you can access them from anywhere.