mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-10-10 12:20:58 +00:00
More command cleanup
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from .base import BaseCommand
|
||||
from restic_compose_backup import restic
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
@@ -6,4 +7,7 @@ class Command(BaseCommand):
|
||||
name = "snapshots"
|
||||
|
||||
def run(self):
|
||||
print("Snapshots!")
|
||||
"""Display restic snapshots"""
|
||||
stdout, stderr = restic.snapshots(self.config.repository, last=True)
|
||||
for line in stdout.decode().split('\n'):
|
||||
print(line)
|
||||
|
Reference in New Issue
Block a user