Non-interactive multivolume restore
O'Connor, Daniel
darius at dons.net.au
Mon Feb 4 04:06:30 UTC 2019
> On 4 Feb 2019, at 13:59, Warner Losh <imp at bsdimp.com> wrote:
> Multiple -f args? Maybe a printf format to clue restore into how to
> construct the names? Maybe also some pipe command with a similar %
> specification to allow restore from compressed files..
OP says you can only specify -f once.
What about using -P? That can be scripted so you could do something where a script checks a file for the current filename it should cat.
-P pipecommand
Use popen(3) to execute the sh(1) script string defined by
pipecommand as the input for every volume in the backup. This
child pipeline's stdout (/dev/fd/1) is redirected to the restore
input stream, and the environment variable RESTORE_VOLUME is set
to the current volume number being read. The pipecommand script
is started each time a volume is loaded, as if it were a tape
drive.
--
Daniel O'Connor
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
More information about the freebsd-hackers
mailing list