Skip to content
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

instruction for rollback #24

Open
crispyduck00 opened this issue Mar 16, 2022 · 3 comments
Open

instruction for rollback #24

crispyduck00 opened this issue Mar 16, 2022 · 3 comments
Labels
question Further information is requested

Comments

@crispyduck00
Copy link

What is the best way to rollback to a point in time snapshot on the main (sending) host?

Is there maybe also a way to do a rollback only on the main host and this is also replicated?

Br

@gbytedev gbytedev added the question Further information is requested label Mar 16, 2022
@gbytedev
Copy link
Owner

Rolling back is a simple zfs command and I don't know how zfsbud could simplify it further.

Is there maybe also a way to do a rollback only on the main host and this is also replicated?

I believe rolling back the source (assuming you roll back to a snapshot that is also available on the destination), then snapshotting the source and then replicating to destination will destroy snapshots on the destination between the rolled back source snapshot and the new snapshot:

zfs rollback some/dataset@zfsbud_123
zfsbud -c -s destination some/dataset

But test with non-critical data. ;)

@crispyduck00
Copy link
Author

How ZFS Rollback works is clear, the question is what is the best/clean way to do it in combination with zfsbug?

I just tested it again:

zfs rollback some/dataset@zfsbud_123
zfsbud -c -s destination some/dataset

works directly on the main dataset "some/dataset" but doing a rollback on any sub datasets of some/datasets with -c -R fails:

cannot receive new filesystem stream: destination has snapshots (eg. some/dataset/subdataset@zfsbud_20220317052219)
must destroy them to overwrite it

Thats the reason for this question. How to do a rollback of any dataset if needed.

@gbytedev
Copy link
Owner

gbytedev commented Mar 18, 2022

works directly on the main dataset "some/dataset" but doing a rollback on any sub datasets of some/datasets with -c -R fails

I don't understand what is failing - the rollback, or the sending operation? Please be as clear as possible on the steps you are taking and what you are trying to accomplish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants