V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
JasonWang97
V2EX  ›  分享创造

备份工具 restic 在 Python 上的 wrapper

  •  1
     
  •   JasonWang97 · 2019-12-28 14:36:38 +08:00 · 2656 次点击
    这是一个创建于 1579 天前的主题,其中的信息可能已经有所发展或是发生改变。

    restic 是快速,高效和安全的备份程序。
    因为最近在用 restic 备份数据,又觉得用 python 对它进行一些更复杂的控制会更方便一点,然后就写了 PyRestic
    PyRestic 是 restic 的 python wrapper。可以安装它然后用 Python 控制 restic 数据备份。
    import PyRestic 后打开 repository 进行备份如下所示:

    import restic
    repo = restic.Repo('/srv/restic-repo', '12345678')
    repo.backup('setup.py')
    

    欢迎使用和关注
    https://github.com/jstzwj/PyRestic

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4593 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 10:06 · PVG 18:06 · LAX 03:06 · JFK 06:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.