Differences
This shows you the differences between two versions of the page.
personal:blog:2014:1031_how_to_set_hubic_as_an_external_storage_for_owncloud [2014/10/31 18:33] antonello |
personal:blog:2014:1031_how_to_set_hubic_as_an_external_storage_for_owncloud [2018/06/18 15:11] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== How to set Hubic as an external storage for owncloud ====== | ||
- | |||
- | ===== Motivations ===== | ||
- | [[https:// | ||
- | * sync is started every X time and not instead driven by a demon that run in the background starting the synchronisation when a file change; | ||
- | * when a file change ALL the file is sent for synchronisation rather than the portion that changed. Think to a large binary file (a zip, a big image, a movie..) and you'll get the sense of this inefficiency; | ||
- | * revision history of files are not supported. | ||
- | |||
- | [[http:// | ||
- | |||
- | In this how-to we will mount a Hubic repository using [[https:// | ||
- | |||
- | ===== Requirements ===== | ||
- | Have your own server/VPS with root access | ||
- | |||
- | ===== Tested on ===== | ||
- | An Ubuntu 14.0 LTS VPS hosted at gandi.net | ||
- | |||
- | ===== Steps ===== | ||
- | |||
- | ==== Install Owncloud ==== | ||
- | |||
- | Just follow [[http:// | ||
- | |||
- | In Ubuntu you can use the deb package to install OwnCloud to ''/ | ||
- | |||
- | ==== Open an account at Hubic ==== | ||
- | |||
- | Just visit [[https:// | ||
- | |||
- | ==== Register a web application at Hubic ==== | ||
- | |||
- | Create an application at [[https:// | ||
- | |||
- | ==== Install hubicfuse ==== | ||
- | |||
- | Just follow the [[https:// | ||
- | |||
- | ==== Mount Hubic ==== | ||
- | |||
- | Create a file / | ||
- | username=[Hubic user e-mail] | ||
- | password=[Hubic password] | ||
- | client_id=[Hubic client id for the registered application] | ||
- | client_secret=[Hubic client secret for the registered application] | ||
- | redirect_uri=[Hubic redirect uri as registered for the application] | ||
- | verify_ssl=True | ||
- | And don't forget to chmod it 600! | ||
- | |||
- | Create a directory ''/ | ||
- | |||
- | Add this line to ''/ | ||
- | |||
- | hubicfuse /mnt/hubic -o noauto_cache, | ||
- | |||
- | where uid is your server user id and gid is those of the www-data group. | ||
- | |||
- | Now mount or reboot and check that you got the hubic repository mounted correctly to ''/ | ||
- | |||
- | ==== Add Hubic as a OwnCloud external storage ==== | ||
- | |||
- | Create a directory / | ||
- | / | ||
- | / | ||
- | / | ||
- | |||
- | In the OwnCloud istance you just installed, click to " | ||
- | |||
- | Finally simlink the OwnCloud folders files_trashbin and files_versions (for each user): | ||
- | cd / | ||
- | ln -s / | ||
- | ln -s / | ||
- | |||
- | That's it! Now you should have in OwnCloud a folder for with all the storage (current files, previous versions and removed ones) are inside Hubic without taking other extra space in the server. | ||
- | |||
- | For better performances I also recommend to disable the file preview using ''' | ||
- | |||
- | ==== A note on performances ==== | ||
- | |||
- | Pretty good actually. OwnCloud interface is very responsive and I have tried to copy large files from the server to the mounted Hubic folder and reverse. In both directions I had a speed of around 40Mb/sec (megabits/ | ||
- | |||
- | ~~DISCUSSION~~ | ||