Ignore NFS primary/standby snapshots for backup.
This commit is contained in:
@@ -21,7 +21,11 @@ let
|
|||||||
${btrfs} subvolume snapshot -r "$target_path" "$snapshot_path"
|
${btrfs} subvolume snapshot -r "$target_path" "$snapshot_path"
|
||||||
|
|
||||||
# --no-send-snapshot-path due to https://github.com/kopia/kopia/issues/4402
|
# --no-send-snapshot-path due to https://github.com/kopia/kopia/issues/4402
|
||||||
${kopia} snapshot create --no-send-snapshot-report --override-source "$target_path" -- "$snapshot_path"
|
# Exclude btrfs replication snapshots (they appear as empty dirs in the snapshot anyway)
|
||||||
|
${kopia} snapshot create --no-send-snapshot-report --override-source "$target_path" \
|
||||||
|
--ignore "services@*" \
|
||||||
|
--ignore "services-standby/services@*" \
|
||||||
|
-- "$snapshot_path"
|
||||||
|
|
||||||
${btrfs} subvolume delete "$snapshot_path"
|
${btrfs} subvolume delete "$snapshot_path"
|
||||||
${kopia} repository disconnect
|
${kopia} repository disconnect
|
||||||
|
|||||||
Reference in New Issue
Block a user