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

zfs receive does not work if the destination filesystem has been changed since the most recent snapshot #33

Closed
ddebeau opened this issue Jun 12, 2021 · 1 comment
Assignees

Comments

@ddebeau
Copy link
Owner

ddebeau commented Jun 12, 2021

Error:

cat 20210607_020000.inc | zfs receive <filesystem>@20210607_020000
cannot receive incremental stream: destination <filesystem> has been modified
since most recent snapshot

zfsup restore <filesystem> 20210607_020000 doesn't return anything. If you wrap the restore command in a try except statement you'll get a BrokenPipeError. We'll want to catch that and let the user know what the problem likely is. The -F option forces a rollback to the most recent snapshot. We should add an option for that.

@ddebeau
Copy link
Owner Author

ddebeau commented Jun 13, 2021

I've found that sometimes it returns a BrokenPipeError and other times it doesn't and the error is correctly read from stderr.

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

No branches or pull requests

1 participant