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.