Temp disable local backup run
This commit is contained in:
parent
3e0861c85e
commit
8d93d478de
|
@ -34,21 +34,26 @@ def main():
|
||||||
if mode == 'volumes':
|
if mode == 'volumes':
|
||||||
volumes = containers.volume_mounts()
|
volumes = containers.volume_mounts()
|
||||||
for vol in volumes:
|
for vol in volumes:
|
||||||
# print(vol)
|
print(vol)
|
||||||
print(vol.mount_string())
|
print(vol.mount_string())
|
||||||
|
|
||||||
binds = containers.bind_mounts()
|
binds = containers.bind_mounts()
|
||||||
for vol in binds:
|
for vol in binds:
|
||||||
|
print(binds)
|
||||||
print(vol.mount_string())
|
print(vol.mount_string())
|
||||||
|
|
||||||
if mode == 'backup':
|
if mode == 'backup':
|
||||||
|
# TODO: Errors when repo already exists
|
||||||
restic.init_repo(Config.repository)
|
restic.init_repo(Config.repository)
|
||||||
|
|
||||||
for vol in containers.backup_volumes():
|
# for vol in containers.backup_volumes():
|
||||||
restic.backup_volume(Config.repository, vol)
|
# restic.backup_volume(Config.repository, vol)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if mode == 'snapshots':
|
if mode == 'snapshots':
|
||||||
restic.snapshots(Config.repository)
|
restic.snapshots(Config.repository)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue