duplicity backend for hubic

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

  • 所有者: alkivi-sas/duplicity-hubic
  • 平台: Linux
  • 许可证: GNU General Public License v3.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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

主要指标

概览
名称与所有者alkivi-sas/duplicity-hubic
主编程语言Python
编程语言Python (语言数: 1)
平台Linux
许可证GNU General Public License v3.0
所有者活动
创建于2013-10-09 15:29:32
推送于2017-10-16 08:44:51
最后一次提交
发布数0
用户参与
星数36
关注者数4
派生数4
提交数2
已启用问题?
问题数0
打开的问题数0
拉请求数0
打开的拉请求数1
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

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.