I’ve never been a Dropbox fan because I’ve always used Google Drive. But since I didn’t want to use my Google Drive to store some specific files I’ve decided to give Dropbox a try on my CentOS 7 server. Unfortunatelly, for some reason I was not able to make it work (the CLI). After a little bit of researching and googling, it seems that the latest Dropbox upgrade requires you to have GLIBC >= 2.19 version (by default, on latest CentOS 7.6 the default GLIBC version is 2.17). More, it seems that’s mandatory to have an EXT4 filesystem in order to sync the remote files locally. Apparently, with XFS, the files are never synced.

I was pretty close to just say a well deserved “Fuck you!” then it hitted me. Docker! So why not running Dropbox inside a docker container better? As for the filesystem, which was already XFS and I had no intention to change that, I’ve decided to use VeraCrypt to create an encrypted EXT4 partition on my actual XFS filesystem.

So here’s how I did it:

1) Install Docker (I won’t lose myself in explanations here, the official Docker documentation is pretty easy to understand):
https://docs.docker.com/install/linux/docker-ce/centos/

2) Install VeraCrypt:

3) Create an encrypted VeraCrypt partition (I’ve chosen 5G, same as my account):

Then choose: 1) Normal, 1) AES, 1) SHA-512, 5) Linux Ext4

3) Create a system user, and a folder where to store the files and mount the veracrypt volume

4) Run Dropbox inside a docker container:

First create some useful system aliases for an easier usage experience:

Start the docker container:

Check what’s the status of docker container:

Check the container logs:

Authorize Dropbox (you’ll see a console message similar with:

Once you have visited that link, the sync will start

And that’s pretty much it!





Share.

About Author

I am a linux passionate and currently working as a Linux Senior System Administrator. I also am a freelancer and help people to complete different jobs. You can hire me on Freelancer.com