Dir handling fixes

This commit is contained in:
2026-10-02 13:36:42 +03:00
parent c69f79ef28
commit 746f634a90
2 changed files with 42 additions and 11 deletions
+8 -5
View File
@@ -237,11 +237,14 @@ Options:
- By default, the generated local snapshots remain on the source. This allows a
failed run to be inspected or sent again. Remove them manually only after
verification, or use `--destroy-source-snapshots` once the workflow is trusted.
- The remote command is `zfs receive -uF`. `-u` leaves received filesystems
unmounted. `-F` can roll back the destination filesystem and destroy newer
snapshots or changes that conflict with the incoming snapshot. Do not point
the script at a destination containing data you need unless you have reviewed
the dry-run output and have a current backup.
- The remote command is `zfs receive -u` (no `-F`). `-u` leaves received
filesystems unmounted. Filesystems that already exist on the destination
(including the destination pool root) are skipped and never modified or
rolled back; existing data on the new server is not deleted. To keep paths
identical, pass the same name as the source pool, for example
`bash zfs-move-over-ssh.sh stor0 root@new-server stor0`, so `stor0/Documents`
arrives as `stor0/Documents`. Skipped and failed filesystems are listed at
the end, and the script continues after a failure.
- The script processes one filesystem at a time. If it stops partway through,
completed destination filesystems remain received. Re-running with the same
source can create another timestamped snapshot; inspect both source and