From owner-freebsd-hackers@freebsd.org Mon Feb 4 13:44:21 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 8D47714D0DB5 for ; Mon, 4 Feb 2019 13:44:21 +0000 (UTC) (envelope-from db@db.net) Received: from artemis.db.net (artemis.db.net [45.32.229.41]) by mx1.freebsd.org (Postfix) with ESMTP id 9388887BC9 for ; Mon, 4 Feb 2019 13:44:19 +0000 (UTC) (envelope-from db@db.net) Received: from night.db.net (artemis.db.net [45.32.229.41]) by artemis.db.net (Postfix) with ESMTP id 4750310757; Mon, 4 Feb 2019 13:44:13 +0000 (UTC) Received: by night.db.net (Postfix, from userid 1000) id B475439874; Mon, 4 Feb 2019 08:44:11 -0500 (EST) Date: Mon, 4 Feb 2019 08:44:11 -0500 From: Diane Bruce To: George Mitchell Cc: FreeBSD Hackers Subject: Re: Non-interactive multivolume restore Message-ID: <20190204134411.GA19894@night.db.net> References: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> User-Agent: Mutt/1.11.1 (2018-12-01) X-Rspamd-Queue-Id: 9388887BC9 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [3.31 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.57)[0.574,0]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[db.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.92)[0.922,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[mx1-us2.ppe-hosted.com,mx2-us2.ppe-hosted.com,mx1-us2.ppe-hosted.com,mx2-us2.ppe-hosted.com,mx1-us2.ppe-hosted.com,mx2-us2.ppe-hosted.com]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.63)[0.634,0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:20473, ipnet:45.32.224.0/21, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.18)[asn: 20473(1.00), country: US(-0.07)] 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 13:44:21 -0000 On Sun, Feb 03, 2019 at 09:50:43PM -0500, George Mitchell 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? -- George > Would xargs work for this? -- - db@FreeBSD.org db@db.net http://artemis.db.net/~db