Leave a note about bind mounting
This commit is contained in:
parent
2b197879b5
commit
84977b5322
@ -112,6 +112,10 @@ if __name__ == "__main__":
|
||||
# Prepare the ZFS snapshot to backup with restic.
|
||||
# --------------------------------------------------------------------------------------
|
||||
try:
|
||||
# Bind mounting will preserve the device ID of the snapshot mount. This device ID is
|
||||
# different for every snapshot causing trouble for restic which keeps track of
|
||||
# device IDs. See https://github.com/restic/restic/issues/3041. Cloning does not
|
||||
# have the same issue as it is a fresh mount.
|
||||
subprocess.run(
|
||||
["/usr/sbin/zfs",
|
||||
"clone", "-o", f"mountpoint={backup_path}", snapshot, "rpool/restic"],
|
||||
|
Loading…
Reference in New Issue
Block a user