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
e6246ebc
Commit
e6246ebc
authored
Sep 03, 2020
by
Jelle van der Waa
🚧
Browse files
Merge branch 'borg_client_btrfs' into 'master'
Exclude btrfs docker submount from being backed up See merge request
!75
parents
afd86b6d
580f91f9
Pipeline
#1562
passed with stage
in 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
roles/borg_client/templates/borg-backup.sh.j2
View file @
e6246ebc
...
...
@@ -23,7 +23,8 @@ delete_snapshot() {
}
if
is_btrfs
"
$src
"
;
then
list_of_btrfs_submounts
=
$(
findmnt
-Rl
-o
target,fstype,options / |
grep
btrfs |
grep
-v
"subvol=
\/
[[:alnum:]]"
|
cut
-d
' '
-f1
)
# List all btrfs submounts we want to backup, e.g. homedir.archlinux.org with "/ /home"
list_of_btrfs_submounts
=
$(
findmnt
-Rl
-o
target,fstype,options / |
grep
btrfs |
grep
-v
docker |
grep
-v
"subvol=
\/
[[:alnum:]]"
|
cut
-d
' '
-f1
)
if
[[
-d
"
$backup_mountdir
"
]]
;
then
if
[[
$(
findmnt
-M
"
$backup_mountdir
"
)
]]
;
then
...
...
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