爱意满满的作品展示区。
JasonWang97

备份工具 restic 在 Python 上的 wrapper

  •  1
     
  •   JasonWang97 · Dec 28, 2019 · 3621 views
    This topic created in 2337 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   ·   4189 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 52ms · UTC 10:10 · PVG 18:10 · LAX 03:10 · JFK 06:10
    ♥ Do have faith in what you're doing.