Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
35927e41
Commit
35927e41
authored
May 17, 2022
by
Evangelos Foutras
🐱
Browse files
Merge branch 'borg-compact-after-prune' into 'master'
borg_client: run compact after pruning on borg 1.2 See merge request
!577
parents
f6e66116
17927c9a
Pipeline
#18917
passed with stage
in 35 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
roles/borg_client/defaults/main.yml
View file @
35927e41
...
...
@@ -4,7 +4,9 @@ backup_hosts:
dir
:
"
~/repo"
suffix
:
"
"
borg_cmd
:
"
borg"
compact_after_prune
:
true
-
host
:
"
ssh://zh1905@zh1905.rsync.net:22"
dir
:
"
~/backup/{{
inventory_hostname
}}"
suffix
:
"
-offsite"
borg_cmd
:
"
borg
--remote-path=borg1"
compact_after_prune
:
false
# not upgraded to borg 1.2 yet
roles/borg_client/templates/borg-backup.sh.j2
View file @
35927e41
...
...
@@ -88,4 +88,9 @@ fi
-e
"
$backup_mountdir
/var/lib/archbuilddest"
\
-e
"
$backup_mountdir
/var/lib/docker"
\
{{
item[
'host'
]
}}
/
{{
item[
'dir'
]
}}
::
$(
date
"+%Y%m%d-%H%M%S"
)
"
$backup_mountdir
"
{{
item[
'borg_cmd'
]
}}
prune
-v
{{
item[
'host'
]
}}
/
{{
item[
'dir'
]
}}
--keep-daily
=
7
--keep-weekly
=
4
--keep-monthly
=
6
{
%
if
item[
'compact_after_prune'
]
%
}
{{
item[
'borg_cmd'
]
}}
compact
-v
{{
item[
'host'
]
}}
/
{{
item[
'dir'
]
}}
{
% endif %
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment