From e82f6155adbb6d567d2cf060b08f4f6db3557620 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Mon, 27 May 2024 18:33:46 -0500 Subject: [PATCH] renamed --- src/restic/backup.py | 2 +- src/restic/snapshots.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/restic/backup.py b/src/restic/backup.py index d43fc9c..39b74e9 100755 --- a/src/restic/backup.py +++ b/src/restic/backup.py @@ -91,7 +91,7 @@ def main( except Exception: console.print_exception() else: - snapshots.run(loki_url) + snapshots.snapshot(loki_url) size.get_size(loki_url) diff --git a/src/restic/snapshots.py b/src/restic/snapshots.py index d4e72ba..7121931 100644 --- a/src/restic/snapshots.py +++ b/src/restic/snapshots.py @@ -9,7 +9,7 @@ from restic.console import console, logger from restic.loki import send_to_loki -def run(loki_url: str = None): +def snapshot(loki_url: str = None): cmd = ['restic', 'snapshots', '--json'] with console.status('Getting snapshots...'): @@ -31,7 +31,7 @@ def main(loki_url: str = None): level='DEBUG', format='%(message)s', handlers=[RichHandler(markup=True, console=console)] ) - run(loki_url) + snapshot(loki_url) if __name__ == '__main__':