From 8d93d478de3bd592537945a9a350085ac0b64fc9 Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Sun, 14 Apr 2019 01:35:14 +0200 Subject: [PATCH] Temp disable local backup run --- restic-backup/backup.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/restic-backup/backup.py b/restic-backup/backup.py index 725bb38..aab34fc 100644 --- a/restic-backup/backup.py +++ b/restic-backup/backup.py @@ -34,21 +34,26 @@ def main(): if mode == 'volumes': volumes = containers.volume_mounts() for vol in volumes: - # print(vol) + print(vol) print(vol.mount_string()) binds = containers.bind_mounts() for vol in binds: + print(binds) print(vol.mount_string()) if mode == 'backup': + # TODO: Errors when repo already exists restic.init_repo(Config.repository) - for vol in containers.backup_volumes(): - restic.backup_volume(Config.repository, vol) + # for vol in containers.backup_volumes(): + # restic.backup_volume(Config.repository, vol) + + if mode == 'snapshots': restic.snapshots(Config.repository) + if __name__ == '__main__': main()