Description
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!