Document interaction between filesystem snapshots and external backup tools

This commit is contained in:
Andrea Mazzoleni 2026-10-01 19:55:23 +02:00
parent e42876e620
commit 68b94bfdf5
42 changed files with 1214 additions and 0 deletions

View file

@ -1567,6 +1567,34 @@ Snapshots Lifecycle
that snapshot, making intermediate file versions unavailable for
recovery.
External backups with filesystem snapshots
When filesystem snapshots are enabled, SnapRAID accesses or creates
snapshots at the root of each data subvolume, volume, or dataset.
A simple way to avoid any interference with external tools is to point
your `data` configuration to a regular subdirectory within the subvolume
or volume (for example, `/mnt/subvol/data` instead of `/mnt/subvol`).
SnapRAID always creates the snapshot directory at the subvolume root
(for example, `/mnt/subvol/.snapraid/`), leaving the data subdirectory
clean so that snapshots remain outside and invisible to backup tools
operating inside it.
Otherwise, if your configured `data` directory is itself the subvolume
or volume root, SnapRAID creates the `.snapraid/` directory directly
inside it (on Btrfs, Bcachefs, and NTFS). While SnapRAID automatically
excludes this directory from its own scanning, external backup tools
or file synchronizers will encounter it. If not excluded, they may
traverse into the snapshots or directory links and copy the entire
frozen data tree, duplicating data and potentially exhausting backup
storage. Always configure external backup tools to exclude the
`.snapraid/` directory.
On ZFS, snapshots are exposed through the standard `.zfs/snapshot/`
virtual directory rather than `.snapraid/`. By default (`snapdir=hidden`),
ZFS hides this directory from directory listings, so external backup
tools will not traverse it. If you have enabled `snapdir=visible`,
ensure your backup tools exclude the `.zfs/` directory.
Pattern
Patterns are used to select a subset of files to exclude or include in
the process. Globbing characters can be used to match files and paths