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

Enable use of 'stdout' for nbackup restore [CORE6315] #6556

Open
firebird-automations opened this issue May 23, 2020 · 1 comment
Open

Enable use of 'stdout' for nbackup restore [CORE6315] #6556

firebird-automations opened this issue May 23, 2020 · 1 comment

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Lucas Schatz (arvanus)

Ref. Google groups: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/firebird-support/Jawf9dc-lg0/T2qQfgZlAgAJ

Hi, I read that nbackup can use "stdout" to backup files, is it possible to enable stdout too for restore operation?
like this:

> nbackup -R stdout db_0.nbackup db_1.nbackup db_2.nbackup

The ideia is to output to "pv" to monitor its state at runtime, something like this:

> nbackup -R stdout db_0.nbackup db_1.nbackup db_2.nbackup | pv > monitored_restore.fdb

Today I use "pv" to monitor gbak/restore (fairy incorrect because the streamed data isn't de same of the final database file, but for me its OK)

> /opt/firebird/bin/gbak -z -b -g -v -st t -y gbaklogfile db.fdb.old stdout|\
> pv --name="Res dbfile" --size $(stat -c %s db.fdb.old)|\
> /opt/firebird/bin/gbak -z -c -v -PAGE_SIZE 16384 -st t -y restorelogfile stdin db.fdb.new ;

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment