summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2021-10-09 12:01:31 +0200
committerxengineering <me@xengineering.eu>2021-10-09 12:01:31 +0200
commit4d984ac7be037031fe27137dd5b09cf978e6ac00 (patch)
tree8dad7389567f66d6ce114e82e7cf1933c3049fb3 /src
parentb862141bba2232fb05b79f7db7850952856f8324 (diff)
downloadxbackup-4d984ac7be037031fe27137dd5b09cf978e6ac00.tar
xbackup-4d984ac7be037031fe27137dd5b09cf978e6ac00.tar.zst
xbackup-4d984ac7be037031fe27137dd5b09cf978e6ac00.zip
Implement 'prune' Section in Configuration File
Diffstat (limited to 'src')
-rw-r--r--src/xbackup/prune.py2
-rw-r--r--src/xbackup/script.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/xbackup/prune.py b/src/xbackup/prune.py
index 03d1304..723161a 100644
--- a/src/xbackup/prune.py
+++ b/src/xbackup/prune.py
@@ -8,7 +8,7 @@ This module contains the pruning functionality of xbackup.
"""
-def prune():
+def prune(backup_cfg, prune_cfg, scripted):
"""prune backups"""
pass
diff --git a/src/xbackup/script.py b/src/xbackup/script.py
index d8ce01c..2c2521b 100644
--- a/src/xbackup/script.py
+++ b/src/xbackup/script.py
@@ -24,7 +24,7 @@ def run():
if args.command == "backup":
backup.backup(cfg["backup"], args.scripted)
elif args.command == "prune":
- prune.prune()
+ prune.prune(cfg["backup"], cfg["prune"], args.scripted)
else:
print(f"Unknown command '{args.command}'")
sys.exit(1)