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
Add "just make me a copy" mode to NBackup [CORE6229] #6473
Comments
Modified by: Arioch (arioch)description: To make fast dataabse copy, when it is in active work, today you have to issue tw ocommands: nbackup -b 0 and then nbackup -r This is not very intuitive. Also, this makes database copied twice (UNIX guys would probably think of pipelining here, but it also has some drawbacks). It seems to be more intuitive AND fast if nbackup just had an option to create the database copy in one pass, using only one command from user. => To make a fast database copy, when it is in active work, today one has to issue two commands: nbackup -b 0 followed by nbackup -r This is not very intuitive. Also, this makes database copied twice (UNIX guys would probably think of pipelining here, but it also has some drawbacks). It seems to be more intuitive AND fast if nbackup just had an option to create the database copy in one pass, using only one command from user. |
Commented by: Sean Leyne (seanleyne) NBackup already has this function, via the lock/unlock option. |
Modified by: Sean Leyne (seanleyne)status: Open [ 1 ] => Resolved [ 5 ] resolution: Won't Fix [ 2 ] |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Commented by: Arioch (arioch) No it does not have "this function" It is three commands instead of one and it is still less intuitive. |
Commented by: @hvlad You don't have to "restore" backup of level 0, if you need a database copy instead of backup. Just "fix" it: https://firebirdsql.org/manual/nbackup-lock-unlock.html#nbackup-restore-and-fixup |
Commented by: Arioch (arioch) The "fix" is described in both your and Sean's docs as following -L operation not -B 0 one. And it is still less convinient and less simple |
Commented by: @hvlad > The "fix" is described in both your and Sean's docs as following -L operation not -B 0 one. |
Commented by: @dyemanov Maybe it's worth allowing both -b 0 and -f together? Or some other modifier for -b 0 to fixup the resulting copy automatically. |
Commented by: Arioch (arioch) > If you read the docs you should understand There are two problems with this claim. 1. Is user really expected to be deducing from implications, rather than reading explicitly and clearly stated things? If so, why need documentation at all? Sources are the ultimate documentations for themselves. User might read sources and should understand, etc. 2. That seems to be "implementation details" as opposed to "code by contract". If not, then you as developer can use implementation details in production, but users can not. Introducign such a switch would serve both makling it intuitive and obvious AND making it the contract users can rely upon and developers knowing not to break without BIG RED WARNING in all the docs around. |
Commented by: @hvlad Dmitry, I don't think that adding modifier for -b 0 is good idea. It will not make things simpler. It will not work with -b 1, for example. |
Commented by: @hvlad Arioch, you never listen to others arguments. There is only one correct opinion - yours. |
Commented by: Arioch (arioch) It is half the problem if i can't hear your arguments. Just today you said : "Ибо не надо закладываться на чужое внутреннее поведение, которое может и будет меняться." - "Because one should never found his actions upon others implementation derails which can and eventually would get changed". That is exactly the case with "-b 0 is the same as -l". |
Commented by: @hvlad 1. The cite you show above is abosilutely different case. This ticket is closed, accept it and keep calm. |
Submitted by: Arioch (arioch)
To make a fast database copy, when it is in active work, today one has to issue two commands: nbackup -b 0 followed by nbackup -r
This is not very intuitive. Also, this makes database copied twice (UNIX guys would probably think of pipelining here, but it also has some drawbacks).
It seems to be more intuitive AND fast if nbackup just had an option to create the database copy in one pass, using only one command from user.
The text was updated successfully, but these errors were encountered: