From eeea4af257e25e8ed3c880fdde6c5ca407e4a594 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Wed, 7 Aug 2019 14:24:53 +0200 Subject: [PATCH] added run if --- zfs-snapshot-backup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zfs-snapshot-backup.py b/zfs-snapshot-backup.py index 011d976..1e51db4 100644 --- a/zfs-snapshot-backup.py +++ b/zfs-snapshot-backup.py @@ -121,3 +121,7 @@ def create_backups(): for member, snapshots in elab_snapshots.items(): members_backups = existing_backups.get(member, []) backup_latest_snapshot(member, snapshots, members_backups) + + +if __name__ == "__main__": + create_backups()