1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2025-02-23 23:00:40 +00:00

Limit prunes to current hostname. Fixes #38

This commit is contained in:
Manu 2018-11-22 09:00:50 +08:00
parent 4afdf1427c
commit 1894558541

View file

@ -1,3 +1,4 @@
import platform
from .borg_thread import BorgThread
@ -30,7 +31,8 @@ def prepare(cls, profile):
'--keep-daily', str(profile.prune_day),
'--keep-weekly', str(profile.prune_week),
'--keep-monthly', str(profile.prune_month),
'--keep-yearly', str(profile.prune_year)
'--keep-yearly', str(profile.prune_year),
'--prefix', platform.node()
]
cmd += pruning_opts
cmd.append(f'{profile.repo.url}')