V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
JasonWang97

备份工具 restic 在 Python 上的 wrapper

  •  1
     
  •   JasonWang97 · Dec 28, 2019 · 3565 views
    This topic created in 2318 days ago, the information mentioned may be changed or developed.

    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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2490 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 12:05 · PVG 20:05 · LAX 05:05 · JFK 08:05
    ♥ Do have faith in what you're doing.