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

ZREP_INC_FLAG="-I" not used with custom zrep tag #201

Open
ma-ef opened this issue May 29, 2023 · 3 comments
Open

ZREP_INC_FLAG="-I" not used with custom zrep tag #201

ma-ef opened this issue May 29, 2023 · 3 comments

Comments

@ma-ef
Copy link

ma-ef commented May 29, 2023

When pulling a backup with a custom zrep tag, the default is to use zfs send -i. In my case I wanted to use the -I flag instead to also send intermediate snapshots. According to the zrep documentation and script, this should be possible by using ZREP_INC_FLAG="-I" However, this flag is not passed on to the relevant subroutine _refreshpull which is called on the remote host.

@ma-ef ma-ef changed the title ZREP_SKIP_EXPIRE not passed to _resfresh with custom zrep tag ZREP_INC_FLAG="-I" not used with custom zrep tag May 29, 2023
@ma-ef
Copy link
Author

ma-ef commented May 29, 2023

Just realized that there is already a pull request for this issue

@ppbrown
Copy link
Member

ppbrown commented May 30, 2023

Would you please try out

https://github.com/bolthole/zrep/raw/issue201/zrep

Disclaimer: i havent tested it.
But basically, I added two new global flags,
--allincrementals
--notallincrementals

I also tweaked the internals though, so some things might not work properly any more.
(ideally they will be fine, but just FYI)

@ma-ef
Copy link
Author

ma-ef commented May 21, 2024

Unfortunately it does not work.
When passing --allincrementals
you get this error message:
ERROR: unrecognized zrep subcommand --allincrementals
I guess the error is in this line
while [[ "$1" == "--" ]] ; do
what you probably want to test here, whether the arguments starts with "--" but you test whether it is "--"

I saw that for backward compatibility you kept the ZREP_INC_FLAG="-I". The strange thing is that it also does not work when passing ZREP_INC_FLAG="-I" as well. I suspect it is not passed on to the sending zrep. Please have a look at the other bug report where you mentioned ZREP_SEND_FLAGS which probably should be set.

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

2 participants