|
| 1 | +--- |
| 2 | +title: "Hubic" |
| 3 | +description: "Rclone docs for Hubic" |
| 4 | +date: "2015-11-08" |
| 5 | +--- |
| 6 | + |
| 7 | +<i class="fa fa-space-shuttle"></i> Hubic |
| 8 | +----------------------------------------- |
| 9 | + |
| 10 | +Paths are specified as `remote:path` |
| 11 | + |
| 12 | +Paths are specified as `remote:container` (or `remote:` for the `lsd` |
| 13 | +command.) You may put subdirectories in too, eg `remote:container/path/to/dir`. |
| 14 | + |
| 15 | +The initial setup for Hubic involves getting a token from Hubic which |
| 16 | +you need to do in your browser. `rclone config` walks you through it. |
| 17 | + |
| 18 | +Here is an example of how to make a remote called `remote`. First run: |
| 19 | + |
| 20 | + rclone config |
| 21 | + |
| 22 | +This will guide you through an interactive setup process: |
| 23 | + |
| 24 | +``` |
| 25 | +n) New remote |
| 26 | +d) Delete remote |
| 27 | +q) Quit config |
| 28 | +e/n/d/q> n |
| 29 | +name> remote |
| 30 | +What type of source is it? |
| 31 | +Choose a number from below |
| 32 | + 1) amazon cloud drive |
| 33 | + 2) drive |
| 34 | + 3) dropbox |
| 35 | + 4) google cloud storage |
| 36 | + 5) local |
| 37 | + 6) onedrive |
| 38 | + 7) hubic |
| 39 | + 8) s3 |
| 40 | + 9) swift |
| 41 | +type> 7 |
| 42 | +Hubic App Client Id - leave blank normally. |
| 43 | +client_id> |
| 44 | +Hubic App Client Secret - leave blank normally. |
| 45 | +client_secret> |
| 46 | +Remote config |
| 47 | +If your browser doesn't open automatically go to the following link: http://localhost:53682/auth |
| 48 | +Log in and authorize rclone for access |
| 49 | +Waiting for code... |
| 50 | +Got code |
| 51 | +-------------------- |
| 52 | +[remote] |
| 53 | +client_id = |
| 54 | +client_secret = |
| 55 | +token = {"access_token":"XXXXXX"} |
| 56 | +-------------------- |
| 57 | +y) Yes this is OK |
| 58 | +e) Edit this remote |
| 59 | +d) Delete this remote |
| 60 | +y/e/d> y |
| 61 | +``` |
| 62 | + |
| 63 | +Note that rclone runs a webserver on your local machine to collect the |
| 64 | +token as returned from Hubic. This only runs from the moment it opens |
| 65 | +your browser to the moment you get back the verification code. This |
| 66 | +is on `http://127.0.0.1:53682/` and this it may require you to unblock |
| 67 | +it temporarily if you are running a host firewall. |
| 68 | + |
| 69 | +Once configured you can then use `rclone` like this, |
| 70 | + |
| 71 | +List containers in the top level of your Hubic |
| 72 | + |
| 73 | + rclone lsd remote: |
| 74 | + |
| 75 | +List all the files in your Hubic |
| 76 | + |
| 77 | + rclone ls remote: |
| 78 | + |
| 79 | +To copy a local directory to an Hubic directory called backup |
| 80 | + |
| 81 | + rclone copy /home/source remote:backup |
| 82 | + |
| 83 | +### Modified time ### |
| 84 | + |
| 85 | +The modified time is stored as metadata on the object as |
| 86 | +`X-Object-Meta-Mtime` as floating point since the epoch accurate to 1 |
| 87 | +ns. |
| 88 | + |
| 89 | +This is a defacto standard (used in the official python-swiftclient |
| 90 | +amongst others) for storing the modification time for an object. |
| 91 | + |
| 92 | +Note that Hubic wraps the Swift backend, so most of the properties of |
| 93 | +are the same. |
| 94 | + |
| 95 | +### Limitations ### |
| 96 | + |
| 97 | +Code to refresh the OpenStack token isn't done yet which may cause |
| 98 | +problems with very long transfers. |
0 commit comments