duplicity backend for hubic

Duplicity后端,基于swift客户端,但为OVH Hubic定制。(Duplicity backend, based on swift client but customize for OVH Hubic)

  • Owner: alkivi-sas/duplicity-hubic
  • Platform: Linux
  • License:: GNU General Public License v3.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Duplicity 后端,基于 swift 客户端,但为 OVH Hubic 定制。

请注意:

  • 此库是非官方的,因此不由 OVH 维护。
  • duplicity - 到本地或远程存储的加密增量备份。

依赖

pip python-requests

安装

只需将 hubicbackend.py 放在后端目录中(/usr/share/pyshared/duplicity/backends 或 /usr/lib/python2.7/dist-packages/duplicity/backends/)

使用

首先使用 Hubic帮助页面生成刷新令牌

export HUBIC_CLIENT_ID='api_hubic_djkazdazjkdnjazdnjkazdnkazdnazk'
export HUBIC_CLIENT_SECRET='some_secret'
export HUBIC_REFRESH_TOKEN='your_generated_token'
duplicity --no-encryption /root hubic://default

如果您已经拥有访问令牌

export HUBIC_ACCESS_TOKEN='your_access_token'
duplicity --no-encryption /root hubic://default

Main metrics

Overview
Name With Owneralkivi-sas/duplicity-hubic
Primary LanguagePython
Program languagePython (Language Count: 1)
PlatformLinux
License:GNU General Public License v3.0
所有者活动
Created At2013-10-09 15:29:32
Pushed At2017-10-16 08:44:51
Last Commit At
Release Count0
用户参与
Stargazers Count36
Watchers Count4
Fork Count4
Commits Count2
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count0
Pull Requests Open Count1
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

duplicity backend for hubic

Duplicity backend base on the swift one, to use hubic

This library is unofficial and consequently not maintained by OVH.

Dependencies

pip python-requests

Installation

Just put hubicbackend.py in the directory of backend (/usr/share/pyshared/duplicity/backends/ or /usr/lib/python2.7/dist-packages/duplicity/backends/)

Use

First generate refresh token using Hubic Help Page

export HUBIC_CLIENT_ID='api_hubic_djkazdazjkdnjazdnjkazdnkazdnazk'
export HUBIC_CLIENT_SECRET='some_secret'
export HUBIC_REFRESH_TOKEN='your_generated_token'
duplicity --no-encryption /root hubic://default

If you already have an access token

export HUBIC_ACCESS_TOKEN='your_access_token'
duplicity --no-encryption /root hubic://default

TODO

  • make a web page to use personnal application and not the sandbox one ...
  • make the backend an heritance of swiftbackend

Credits

Matthieu Huin mhu@enovance.com for the original client

License

duplicity-hubic is freely distributable under the terms of the GPLv3 license.