Date: Mon, 4 Feb 2019 03:28:43 -0800 (PST) From: "Rodney W. Grimes" <freebsd-rwg@pdx.rh.CN85.dnsmgr.net> To: Warner Losh <imp@bsdimp.com> Cc: George Mitchell <george+freebsd@m5p.com>, FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: Non-interactive multivolume restore Message-ID: <201902041128.x14BShW2036226@pdx.rh.CN85.dnsmgr.net> In-Reply-To: <CANCZdfr732j5q_O4ZxwJwY-FF5M4U5REGDoX-Xjr_6iN-zPE5w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Sun, Feb 3, 2019, 8:23 PM George Mitchell <george+freebsd@m5p.com wrote: > > > Historically, the restore program assumed that the volumes of a > > multivolume dump were on separate physical reels of tape, and that a > > human would have to load each tape to complete the restore. But now > > I have multivolume dumps that are simply separate online files from > > which I would like to restore without having to type each name in > > one at a time. However, you can give only one -f option on the > > command line, and additional file names are assumed to specify the > > files you want to restore, as opposed to additional dump volumes. > > > > I thought perhaps 'cat dumpvols... | restore -x -f -', but that > > gets confused at the beginning of the second volume. > > > > What's the right way to do this? > > > > 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.. Doesnt restore read these file names from stdin? #!/bin/sh restore rf foo.first <<! foo.second foo.third foo.forth ! -- Rod Grimes rgrimes@freebsd.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902041128.x14BShW2036226>