Hubic is the french Dropbox clone, created by OVH, offering 25Gb storage for free. When it sorted out there weren't many clients for the different operating systems but there was an useful (undocumented) fonction: the webdav. Using webdav you could mount your Hubic drive on any system to copy your files.
Some weeks ago, when the latest OS client (the linux one) come out, OVH decided to remove the webdav access... but unfortunately the client at the moment has some bugs and is not so easy-to-use like "copy e file into a folder".
To simplify the usage of swift, you can use a PHP swift proxy to your hubic account.
git clone https://github.com/Toorop/HubicSwiftGateway.git mv HubicSwiftGateway/src/www /var/www/html/hubic mkdir /var/www/html/cache chown apache:apache /var/www/html/cache
Here we are supposing your apache root folder is /var/www/html. And naturally, the apache with php5 should already be installed on your system.
Now you can install the cloudfuse project. For Centos6 I created the RPM to simplify your work, but if you prefer you can download the sources from github and follow the instructions on the README to build it.
The RPMs are located on my repo: http://repo.mornati.net/extras/
You can configure it as yum repository for your centos server using:
echo > /etc/yum.repos.d/mornati-extras.repo << EOF [mornati-extras] name=MornatiNet-Extras baseurl=http://repo.mornati.net/extras/centos/$releasever/$basearch/ gpgcheck=0 enalbed=1 EOF
And install then cloudfuse using yum
yum -y install cloudfuse
To allow a normal user to mount the hubic driver using could fuse, must be in the fuse group, and the mount point should be owned by the fuse group.
usermod -aG fuse mmornati chgrp fuse /mnt/hubic; chmod g+w /mnt/hubic chgrp fuse /mnt/hubic; chmod g+w /mnt/cubic
Before you can mount your hubic drive, you need to configure your account data in a file named .cloudfuse in the home directory of the user you want to use to mount.
username=hubicuname api_key=hubicpassword authurl=http://localhost/hubic/ cache_timeout=20
Where, authurl is the url to your Swift HTTP proxy. SO, in my example, the proxy was installed on the same system where I want to mount the Hubic drive too.
Now you are ready to mount your hubic driver on your system:
/usr/local/bin/cloudfuse /mnt/hubic/ -o noauto_cache,sync_read
If all worked well you should be able to list your Hubic files
mmornati@desktop ~$ ls /mnt/hubic/default Backup Documents Images Videos