Skip to content

Commit

Permalink
Limit prunes to current hostname. Fixes #38
Browse files Browse the repository at this point in the history
  • Loading branch information
m3nu committed Nov 22, 2018
1 parent 4afdf14 commit 1894558
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vorta/borg/prune.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import platform
from .borg_thread import BorgThread


Expand Down Expand Up @@ -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()

This comment has been minimized.

Copy link
@ThomasWaldmann

ThomasWaldmann Nov 22, 2018

Collaborator

if hosts are called e.g. host1 and host10, this will malfunction.
better include the - at the end to make the match more safe.

This comment has been minimized.

Copy link
@m3nu

m3nu Nov 22, 2018

Author Contributor

So many things to consider.. Changed.

]
cmd += pruning_opts
cmd.append(f'{profile.repo.url}')
Expand Down

0 comments on commit 1894558

Please sign in to comment.