Ref Link :
http://linuxfordummies.org/mount-your-box-com-account-in-linux/
http://linuxfordummies.org/mount-your-box-com-account-in-linux/
Mount Your Box.com Account In Linux
Apr
9
Box.net (box.com actually now) is a service that enables you to have a place to put files that you want to access from anywhere. Some people use it to back up their workstations. Did your box.net mount start failing recently? They’ve changed a couple things.. use this guide to set it up again. First thing we need to do is to install davfs. You can do that with one of the following commands, depending on what package manager you use on your Linux distro: RedHat based systems:
9
10
Box.net (box.com actually now) is a service that enables you to have a place to put files that you want to access from anywhere. Some people use it to back up their workstations. Did your box.net mount start failing recently? They’ve changed a couple things.. use this guide to set it up again. First thing we need to do is to install davfs. You can do that with one of the following commands, depending on what package manager you use on your Linux distro: RedHat based systems:yum install davfs2
Debian based systems:
apt-get install davfs2
Now, add the mount point:
mkdir /box
Add this line to your /etc/fstab:
https://www.box.com/dav /box davfs rw,user,noauto 0 0
Add this line to the bottom of the /etc/davfs2/secrets file (replace with your email address and password)
https://www.box.com/dav user@email.com password
Edit the /etc/davfs2/davfs2.conf and change the following line:
# use_locks 1
And change it to this:
use_locks 0
Now we can mount it. To do that, use the following command:
mount /box
Show that it’s there with ‘mount’ or with ‘df’ Now, rsync something to it. Here, i’m rsyncing a 1gb tar.gz file:
[root@britannia home]# rsync -avz --progress somefile.tar.gz /box/ sending incremental file list rob-test.tgz 1154875454 100% 61.06MB/s 0:00:18 (xfer#1, to-check=0/1) sent 1155263231 bytes received 31 bytes 59244269.85 bytes/sec total size is 1154875454 speedup is 1.00 [root@britannia home]#
And that’s it. You should be good to go at this point.
https://www.box.com/dav /box davfs rw,user,noauto 0 0
The command would be then:
rsync -rvz –size-only “~/myfolder/” “~/box.net/”
With the standard -u (for update) it will not work – it will always copy all the files from scratch.