Snapshot practices to exclude mounts
-
Hello, I have a query about what the best way is to exclude mounted filesystems from snapshots/backups.
My CCTV server has a volume on my NAS mounted under
/media/footage
(though this should probably be/mnt
). I noticed today that this seems to be included in the snapshot and backup, which makes sense, but I'd actually rather avoid this behaviour given it's not actually on the disk. The mount is subsequently used by a Docker container.What is my best option to avoid snapshotting mounts? I thought about creating a separate disk with
NOBAK
but I would still have to mount that to a local directory (i.e./mnt/externaldisk
) which would then still result in it being included in the snapshot right? Or am I misunderstanding? Entirely possible it's just because I've gone against tradition and mounted it under/media
, but I don't know. I could also just be totally misunderstanding and it's just "used" unused space that's being included that just so happens to be the same size as my native disk + the mount. Backup size was 42GB, local disk is 18GB, footage is 23GB so 42 altogether.