Mount your Box.com account to your vps and use it for backups

Box.com (formerly known as box.net) is an online file sharing and Cloud content management service for enterprise companies. With a recent promotion you could get as much as 50GB of storage space and what better thing to do then to mount it on your vps and use it for backup storage?

NB!

A comment was made by a reader that Box changed the URL to https://dav.box.com/dav
If you follow this guide, make sure you use the correct URL.

This example will use davfs to connect to box.com.
Install it by issuing this command:

Now, create the directory where we will mount your account to

Add this line to your /etc/fstab:

Add this line to the bottom of the /etc/davfs2/secrets file
make sure you use the email address and password that you signed up with

Edit the /etc/davfs2/davfs2.conf
Find this line:

And change it to this:

Now we can mount it. To do that, use the following command:

Show that it’s there with with

On a side-note, my empty account did show that I already used 50% of the storage, which wasn’t true.

Now you can rsync/copy/move something to the directory, remember that the maximum filesize for personal accounts are 250mb.

Lastly:
[alert style=”green”]Make sure that your VPS Provider has enabled Fuse for your vps.

Remember to mount the directory after a reboot if you need access to it again.[/alert]

9 comments for “Mount your Box.com account to your vps and use it for backups

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.