Hello,
I have two zpools named tank and storage0.
Tank is the system with root on zfs, storage0 is the backup destination.
I want to backup the whole tank disk as a live system onto storage0.
I have several snapshots on tank, for examples sake named @someSnap
I do the following:
zfs snapshot -r tank@backup_root
This creates @backup_root snapshots on all datasets, and incremental snapshots on top of @someSnap.
zfs send -R tank@backup_root | zfs receive -Fd storage0/tank
This command cancels after some time, with messages:
...
"cannot receive incremental stream: destination storage0/tank/somePath does not exit."
What zfs tries to do, is create the incremental snapshot @backup_root on top of snapshot @someSnap.
Whereas the initial replication of @someSnap is not possible for some unknown reason, I suppose.
I can solve it by creating all the paths manually, after which the @someSnap snapshots are created correctly.
This seems horrible. Is this intended, is there a way around it, or am I missing an option like -p for zfs create, to create needed directories/ parent directories automatically?
Kind regards
I have two zpools named tank and storage0.
Tank is the system with root on zfs, storage0 is the backup destination.
I want to backup the whole tank disk as a live system onto storage0.
I have several snapshots on tank, for examples sake named @someSnap
I do the following:
zfs snapshot -r tank@backup_root
This creates @backup_root snapshots on all datasets, and incremental snapshots on top of @someSnap.
zfs send -R tank@backup_root | zfs receive -Fd storage0/tank
This command cancels after some time, with messages:
...
"cannot receive incremental stream: destination storage0/tank/somePath does not exit."
What zfs tries to do, is create the incremental snapshot @backup_root on top of snapshot @someSnap.
Whereas the initial replication of @someSnap is not possible for some unknown reason, I suppose.
I can solve it by creating all the paths manually, after which the @someSnap snapshots are created correctly.
This seems horrible. Is this intended, is there a way around it, or am I missing an option like -p for zfs create, to create needed directories/ parent directories automatically?
Kind regards