On my web server that I run several sites (including this one), I wanted a relatively cheap backup option. My host will offer me a backup option, but it’s more than I wanted to pay, so I looked into a few other options.
I settled on a combination of freely available domain backup software (Webmin), which does a nice job of backing up my domains, but if the entire computer tanked, I’d lose them too. So I opted for Dropbox Pro, which comes with 1TB of space for $99 a year. It copies off the backups to Dropbox, which has the added advantage of syncing them to my local computer at home too. It’s worked nicely – and still works to this day.
The Dropbox command line client for Linux will sync stuff – it will sync everything. This is a problem for me because the total amount of space I use for my server backups is less than 100Gb. That leaves 900Gb I could use for my own personal backups, which I’ve wanted to do. I can’t do that because the Dropbox client syncs everything. Given my server has something like 250Gb of space on it, if I started using all that 900Gb, I’d quickly fill up my web server and cause problems. Now, the client can be told to include or exclude directories, which does work. When normally operating, I have it syncing just the one directory that contains the aforementioned server backups.
Here’s the core issue here, and the reason I’m posting. I want to use that extra 900Gb of space, and whenever I add a new directory on my local computer, it goes to my server. I cannot exclude it from the Linux command line “selective sync” until it exists. I’ve been through the help for the command line sync several times already.
I do not know a way to tell the Linux Command Line Selective Sync function to ignore *ALL* directories – including future/unknown ones, and sync “JUST THIS ONE DIRECTORY” no matter what. Basically a whitelist feature.
If someone knows how to do this, please – let me know. It would solve a lot of problems. Given I already pay for Dropbox annually, I’d rather not have to pay someone else (Google, Apple, Amazon) to have cloud services I can put whatever I want on.
If you know a way around this, I’d be really happy to know.
UPDATE: After posting, I found this blog post, which appears to indicate what I’m trying to do (whitelist) doesn’t exist. They offer a cron script option, which I might be able to look into. There is another idea of my own, which is to create a directory on my local machine, get it listed in the “exclude” on the server, and then put anything else I want to put in there in THAT subdirectory. Clumsy, but it could work.