Sync your Box in linux with davfs2

I got 50gb space on Box.com last time for opening an account through Sony Ericsson android phone (Later all user got the same 50gb space).

However their desktop sync (available only for Windows and Mac) is only for paid user. I dont know how do they expect user to utilize all the 50gb space without desktop sync program available to them.

For comparison dropbox come with 2gb only, but have client for all (ok maybe not, but cover more than box did).

Now I browse around and found that Linux user can sync using davfs2. [Source]

Here what you need to do: (Here is tested working on my Fedora 16 LXDE box)

As root:
yum install davfs2
adduser -a -G <user> davfs2
echo “https://www.box.com/dav /home/<user>/box.net davfs rw,user,noauto 0 0″ > /etc/fstab
chmod u+s /usr/sbin/mount.davfs

Replace <user> with your own username (without < & >)

As <user> (your own user, exit from root):
mkdir ~/box.net
mkdir ~/.davfs2
echo “use_locks 0″ > ~/.davfs2/davfs2.conf
echo “https://www.box.com/dav <email> <password>” > ~/.davfs2/secrets
chmod 600 ~/.davfs2/secrets
mount /home/myuser/box.net

Replace <email> with email you use to login to box (without < & >)
Replace <password> with password you login to box (without < & >)

After that when you open box.net folder in your user directory, it should load your box folder and files. Congrats!

Comments

  1. Tassos says:

    yes! but do not tell us in what way synchronize your file. rsync do not sync files over davfs just overwrite them.
    thanks,
    Tassos

  2. Ismail Saleh says:

    Thanks and noted :)

    Apparently all I want just easy access to box, not really on sync part (well as long as I have a copy in box).