-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I 1:1 replicate a pool without datasets (same name, mount on target)? #85
Comments
I think this is related to #41 ? Keep in mind that the main pool0 cant be replicated, since you have to create it manually on the target in the first place. |
Try using --strip-path 1 |
@psy0rz Thanks, will try it. Btw. zfs send (snapshot) | ssh ip zfs recv -F pool0 can replicate the whole pool "as is" to the target pool root. |
You're right. So in that case the strip-path might be not enough for you, since it doesnt receive the root-dataset of a pool, only the sub-datasets. |
Since your name is Catfriend1, check out this project of mine: https://github.com/psy0rz/meowton/wiki :) |
@psy0rz Pretty cool cat gadget :-)! 🐱 |
Since this is an issue for multiple people, i now improved stripping and added the --force (-F) option. Also updated the documentation to explain how 1:1 replication works: https://github.com/psy0rz/zfs_autobackup/wiki#making-source-and-target-paths-look-the-same |
pip install zfs-autobackup==v3.1.2-rc2 |
Hi,
I've successfully used zfs-autobackup to create snapshots at the source pool and replicate them to the target pool.
My source looks like this:
My target looks like this:
I'd like to replicate the current pool0 state from the source to the target, then remove all snapshots, datasets so I'll end up with the current state as /pool0 at the target.
How could I go about this using zfs-autobackup?
Is there an alternative way to convert the existing, replicated last snapshot into the "root /pool0", removing the rest from the target?
Target snapshot state:
Thank you.
The text was updated successfully, but these errors were encountered: