This commit is contained in:
John Lancaster
2024-05-27 18:33:46 -05:00
parent fc15a24ab6
commit e82f6155ad
2 changed files with 3 additions and 3 deletions

View File

@@ -91,7 +91,7 @@ def main(
except Exception: except Exception:
console.print_exception() console.print_exception()
else: else:
snapshots.run(loki_url) snapshots.snapshot(loki_url)
size.get_size(loki_url) size.get_size(loki_url)

View File

@@ -9,7 +9,7 @@ from restic.console import console, logger
from restic.loki import send_to_loki from restic.loki import send_to_loki
def run(loki_url: str = None): def snapshot(loki_url: str = None):
cmd = ['restic', 'snapshots', '--json'] cmd = ['restic', 'snapshots', '--json']
with console.status('Getting snapshots...'): 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)] level='DEBUG', format='%(message)s', handlers=[RichHandler(markup=True, console=console)]
) )
run(loki_url) snapshot(loki_url)
if __name__ == '__main__': if __name__ == '__main__':