Linux WebDAV mount for box.com

I have around 25GB of photo’s currently sitting on the home server and have been looking at options for backing up online.

I have extra paid space in PicasaWeb / Google but the only way to sync pictures to Google is to use the desktop Picasa app, which isn’t suitable for unattended automatic syncing from the server.

As I have 50GB in box.com I thought I’d look to see if there was an easy way to sync to that, it turns out there is!

Rather than manually sync I liked the idea of  using rsync or similar and found this on the web, collated here to save you a search: –

Add the following line to fstab: –

https://www.box.com/dav /home/youruser/box.com/ davfs rw,user,noauto 0 0

Change ‘youruser’ to your linux user name.

Install davfs2 and add user to davfs2 group: –

sudo apt-get install davfs2 (or yum or whatever your distro uses)
sudo chmod u+s /sbin/mount.davfs
sudo usermod -a -G davfs2 mylinuxusername

Mount and login to box.com account: –

cd ~
mkdir box.com
mount box.com

type your full user name, don’t forget the email part (e.g. name@email.com)

enter your password

You can then browse box.com as a local folder, and use all the normal linux tools, like rsync!

Andy.

This entry was posted in Linux, Technical. Bookmark the permalink.

Leave a Reply

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