ND-0030 / LINUX OPERATIONS
Your Backup Job Succeeded. Which Filesystem Did It Write To?
At 02:00 the backup job reported success. At 07:00 the backup volume showed no new copy. Both can be true: if a separate volume fails to mount but the directory still exists, a job can write to the filesystem underneath it. The exit code tells you the job finished, not where the bytes landed. Check […]
At 02:00 the backup job reported success. At 07:00 the backup volume showed no new copy. Both can be true: if a separate volume fails to mount but the directory still exists, a job can write to the filesystem underneath it. The exit code tells you the job finished, not where the bytes landed.
Check the exact destination
Run these read-only checks in the same mount namespace as the backup job. Replace the path with the mountpoint you expect, not a subdirectory inside it.
findmnt --kernel -n -o TARGET,SOURCE,FSTYPE --target /mnt/backups
findmnt --kernel -n -o TARGET,SOURCE,FSTYPE --mountpoint /mnt/backups
The first command answers “What filesystem contains this path?” The second answers “Is this path itself a mountpoint?” If the first shows / and the second finds no mount at /mnt/backups, don’t start the job. If the second finds a mount, still compare its identity with the expected volume UUID, remote export, or other identifier appropriate to the destination. A mount at the right path can still be the wrong mount. util-linux findmnt manual
What we verified
On Debian 13 with util-linux 2.41.5, a temporary directory inside an existing /dev/shm mount returned that parent mount with --target (exit 0). The same directory returned no row with --mountpoint (exit 1). Querying /dev/shm itself with --mountpoint succeeded. No filesystem was mounted or unmounted, and no backup job was run.
If the job already ran
Pause scheduled retries. If you can safely inspect the underlying path before remounting, record what is there. Mounting at that path can hide files written underneath it without deleting them. Preserve both copies until you know which one is usable.
Make a wrong or missing destination a hard failure in the job’s preflight. After the job, verify the new copy on the expected storage and restore a sample in isolation. A mount check is evidence about the path at that moment, not proof it stayed mounted or that the backup can restore.
Related: Restore a Backup Before You Need It.