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

@@ -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__':