From owner-freebsd-hackers@freebsd.org Mon Feb 4 03:30:10 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 D29E814BCA0E for ; Mon, 4 Feb 2019 03:30:09 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CEDEC6B23E for ; Mon, 4 Feb 2019 03:30:08 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x835.google.com with SMTP id b8so4098796qtj.1 for ; Sun, 03 Feb 2019 19:30:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hmJl0QLhnQljqvbBPOkNpGTCyfpzARAmSfg1/5B1aek=; b=JXAHU7IfyNrdXTYpZCLpP1OzZLQ4HT+0Z4DF3hVwEeBL6P1eNxEpa/72Ni2m6y/4gy 5ZvX7EsT7m23m5oixwOqyfcciqZu3RBlCdhy3Errq7ghuVWdigsR3HyZfkBAZGnT06oa rhI8E2+IqBPAF1mws0nJRJJF8ZBdf9oNYK6SHHk8K0wjOnSs8muzDJGF2+PRN8U+aWFt cRjXhzj5q1F5ObxXtDAS2nLrB7t+bRb0lXofmebhYnO42Gyt55ki04msJrQMBnzN/EKH izVCP2rWOSLM7I82Ird6gQb9v23/GrTm+wzlAqV8gmM/JnQ46/eJd8VblQyw66VdqqFA HCaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hmJl0QLhnQljqvbBPOkNpGTCyfpzARAmSfg1/5B1aek=; b=FL+/+OdjFlfM5zNahe66YJ9jk2hT2t0Ce26QE72KXjtlf4WEPd4CaBz51EHxEL1YPk /dHHLmY8qVs5ZUzEPJMZXvFTBNcZWKeUsduUoWwp8v7WBoX1u9Gn0AWhWZ5pWM1jyUHQ 83YA4yY370ESEO+ADXkPyLAZV+X2mHnGgZMDAO+v12d4vyIRR4WB82sT5qGaS92alb91 gxt3RoPa+neS9eW5Slix0wo+wXxS4UE46rlXKh9BJoFOsFN4mqQDKp66Hr2Tq6Es4Xzw 5y1Y1onBf+TQGcCuBDBVKrNARglcmekvWsBuvSIvaSedPvH/3iluP86R/hEL4qYo30PN k30w== X-Gm-Message-State: AHQUAua7d7FDJmtV/GIkxdv7+EFbR6GKUIZdR9lnePkfyGxHrN8p0JKw C5KQ3iWFpm7cO2D/nrPwIVMU3jnvCr5IIVTCPOWFZA== X-Google-Smtp-Source: AHgI3IbMgjYSJDCep9kKULvZy3q4tGhHb4E4IVnYXVWhgwDrIzX/rUXdlw5XVkeHsaTUU8LbHkDQ+zZPEc+HigAf4Nc= X-Received: by 2002:ac8:3826:: with SMTP id q35mr9077486qtb.33.1549251008045; Sun, 03 Feb 2019 19:30:08 -0800 (PST) MIME-Version: 1.0 References: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> In-Reply-To: <5fc87495-8fdc-c1f3-0b95-8609347794f0@m5p.com> From: Warner Losh Date: Sun, 3 Feb 2019 20:29:56 -0700 Message-ID: Subject: Re: Non-interactive multivolume restore To: George Mitchell Cc: FreeBSD Hackers X-Rspamd-Queue-Id: CEDEC6B23E X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=JXAHU7If X-Spamd-Result: default: False [-5.42 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_SHORT(-0.88)[-0.879,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[freebsd]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[cached: ALT1.aspmx.l.google.com]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[5.3.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; IP_SCORE(-2.53)[ip: (-8.22), ipnet: 2607:f8b0::/32(-2.41), asn: 15169(-1.93), country: US(-0.07)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 03:30:10 -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.. Warner >