mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-09-28 14:45:23 +00:00
Instantiate Config instance instead of using class namespace
This commit is contained in:
@@ -7,9 +7,7 @@ from restic_volume_backup.containers import RunningContainers
|
||||
|
||||
def main():
|
||||
args = parse_args()
|
||||
|
||||
Config.check()
|
||||
|
||||
config = Config()
|
||||
containers = RunningContainers()
|
||||
|
||||
if args.action == 'status':
|
||||
@@ -33,7 +31,7 @@ def main():
|
||||
# restic.backup_volume(Config.repository, vol)
|
||||
|
||||
elif args.mode == 'snapshots':
|
||||
restic.snapshots(Config.repository)
|
||||
restic.snapshots(config.repository)
|
||||
|
||||
|
||||
def parse_args():
|
||||
|
Reference in New Issue
Block a user