From 3e2c4ea5c9e5da9c074e84f83d7d74b8ab3a2ba2 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Mon, 27 May 2024 00:54:08 -0500 Subject: [PATCH] added snapshots back into the backup script --- src/restic/backup.py | 2 ++ src/restic/snapshots.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/restic/backup.py b/src/restic/backup.py index 8887389..7117779 100755 --- a/src/restic/backup.py +++ b/src/restic/backup.py @@ -87,6 +87,8 @@ def main( func(backup_dir, loki_url, tag) + snapshots.run(loki_url) + if __name__ == '__main__': main() diff --git a/src/restic/snapshots.py b/src/restic/snapshots.py index dc669b3..d4e72ba 100644 --- a/src/restic/snapshots.py +++ b/src/restic/snapshots.py @@ -18,7 +18,7 @@ def run(loki_url: str = None): line = result.stdout data = json.loads(line) - console.print(data) + logger.info(f'Got {len(data)} snapshots') if loki_url is not None: send_to_loki(loki_url=loki_url, line=line, backup='snapshots')