From owner-freebsd-questions@FreeBSD.ORG Mon Jan 28 15:50:39 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E91BDFED for ; Mon, 28 Jan 2013 15:50:39 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id AE88072E for ; Mon, 28 Jan 2013 15:50:39 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.6/8.14.6) with ESMTP id r0SFoa5A017600; Mon, 28 Jan 2013 08:50:36 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.6/8.14.6/Submit) with ESMTP id r0SFoaGf017597; Mon, 28 Jan 2013 08:50:36 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 28 Jan 2013 08:50:36 -0700 (MST) From: Warren Block To: Ralf Mardorf Subject: Re: Usage of "restore" In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Mon, 28 Jan 2013 08:50:36 -0700 (MST) Cc: FreeBSD quest X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2013 15:50:40 -0000 On Mon, 28 Jan 2013, Ralf Mardorf wrote: > I don't understand how to use the restore command. > > root@freebsd:/mnt/dump # restore -v -t dump-9.1-RELEASE-20130123_193142-usr_f.dump > Verify tape and initialize maps > /dev/sa0: No such file or directory sa0 is the tape device, used by default if -f is not specified. > root@freebsd:/mnt/dump # restore -v -t -f dump-9.1-RELEASE-20130123_193142-usr_f.dump That is the right way to list the contents. > Verify tape and initialize maps > Tape block size is 32 > Tape is not a dump tape Except... > dump -0Launf - $rootdir_a | bzip2 > "$dump_path-roota.dump" The files that are called dump files are actually compressed with bzip2. So they need to be uncompressed. It would be good to change the backup script to name the files ".dump.bz2" or something similar. Untested, but overconfidently: # bzcat dump-9.1-RELEASE-20130123_193142-usr_f.dump | restore -v -t -f - For reference: http://www.wonkity.com/~wblock/docs/html/backup.html