From owner-freebsd-questions Thu Mar 2 15:14:22 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.telestream.com (mail.telestream.com [205.238.4.5]) by hub.freebsd.org (Postfix) with ESMTP id A337737B620 for ; Thu, 2 Mar 2000 15:14:17 -0800 (PST) (envelope-from keith@mail.telestream.com) Received: from localhost (keith@localhost) by mail.telestream.com (8.9.3/8.9.3) with ESMTP id PAA28822; Thu, 2 Mar 2000 15:14:11 -0800 Date: Thu, 2 Mar 2000 15:14:11 -0800 (PST) From: To: Oscar Ricardo Silva Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to restore from a tape using tar? In-Reply-To: <4.2.2.20000302165738.00ac3b90@mail.utexas.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Just my .02 worth. I would think that dump would be a far better option for doing the backup as well as the restore. Using 'restore' you can place things in a differnt location just by being in a different location when you issue the restore -i command. Do something like this. dump -0auf /dev/st0 / then to restore it change to what ever location you want and do something like this. mt -f /dev/st0 rewind restore -i /dev/st0 Works great. ================================= I here by change the name of RedHat to RedSplat. Keith W. At the helm ================================= On Thu, 2 Mar 2000, Oscar Ricardo Silva wrote: > I have a computer running FreeBSD 3.4 with a scsi hard drive, cd and tape > drive. I recently attempted to run a backup of the system with the command: > > tar -cvf /dev/st0 / > > which should've backed up the entire system. I was able to run: > > tar -tf /dev/st0 > /FullBackupTOC.txt > > and successfully created a table of contents for the tape. > > I now want to test whether I can properly restore files from this tape but > I want to restore them to a different location than they were (so that I > don't accidentally erase anything). I'm not sure what the syntax for tar > would be to accomplish this. > > Any suggestions/ideas? > > > Thanks, > > Oscar > > > > "Don't believe the hype" > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message