From owner-freebsd-hackers@freebsd.org Mon Feb 4 11:28:56 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C819114C7DD6 for ; Mon, 4 Feb 2019 11:28:56 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2624381B59 for ; Mon, 4 Feb 2019 11:28:56 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x14BShRi036227; Mon, 4 Feb 2019 03:28:43 -0800 (PST) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id x14BShW2036226; Mon, 4 Feb 2019 03:28:43 -0800 (PST) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201902041128.x14BShW2036226@pdx.rh.CN85.dnsmgr.net> Subject: Re: Non-interactive multivolume restore In-Reply-To: To: Warner Losh Date: Mon, 4 Feb 2019 03:28:43 -0800 (PST) CC: George Mitchell , FreeBSD Hackers X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 2624381B59 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [2.17 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.55)[0.550,0]; IP_SCORE(-0.01)[ip: (0.02), ipnet: 69.59.192.0/19(0.01), asn: 13868(-0.02), country: US(-0.07)]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.73)[0.731,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: pdx.rh.CN85.dnsmgr.net]; NEURAL_SPAM_LONG(0.01)[0.014,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2019 11:28:56 -0000 > On Sun, Feb 3, 2019, 8:23 PM George Mitchell > > 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 <