Issue Details (XML | Word | Printable)

Key: CORE-6315
Type: Improvement Improvement
Status: Open Open
Priority: Trivial Trivial
Assignee: Unassigned
Reporter: Lucas Schatz
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Enable use of 'stdout' for nbackup restore

Created: 23/May/20 08:15 PM   Updated: 27/May/20 11:31 AM
Component/s: NBACKUP
Affects Version/s: 4.0 Initial, 3.0.0, 3.0.1, 3.0.2, 4.0 Alpha 1, 3.0.3, 3.0.4, 4.0 Beta 1, 3.0.5, 4.0 Beta 2
Fix Version/s: None

Environment: Any Linux environment, but probably useful at windows too

QA Status: No test


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

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.