Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
33381b1a
Commit
33381b1a
authored
Feb 01, 2020
by
Jelle van der Waa
🚧
Browse files
borg-client: use the correct base directory to exclude files
parent
546971aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/borg-client/templates/borg-backup.sh.j2
View file @
33381b1a
...
...
@@ -56,10 +56,10 @@ borg create -v --stats -C lz4 \
-e
/var/cache
\
-e
/var/lib/archbuild
\
-e
/var/lib/archbuilddest
\
-e
"
$
snapsho
tdir
/var/cache"
\
-e
"
$
snapsho
tdir
/var/lib/archbuild"
\
-e
"
$
snapsho
tdir
/var/lib/archbuilddest"
\
-e
"
$
snapsho
tdir
/srv/archive"
\
-e
"
$
backup_moun
tdir
/var/cache"
\
-e
"
$
backup_moun
tdir
/var/lib/archbuild"
\
-e
"
$
backup_moun
tdir
/var/lib/archbuilddest"
\
-e
"
$
backup_moun
tdir
/srv/archive"
\
{{
backup_host
}}
:
{{
backup_dir
}}
::
$(
date
"+%Y%m%d-%H%M%S"
)
"
$backup_mountdir
"
borg prune
-v
{{
backup_host
}}
:
{{
backup_dir
}}
--keep-daily
=
7
--keep-weekly
=
4
--keep-monthly
=
6
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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