Commit e6246ebc authored by Jelle van der Waa's avatar 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
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment