From owner-freebsd-questions Mon Jun 7 15:21: 4 1999 Delivered-To: freebsd-questions@freebsd.org Received: from sand.global.net.uk (sand.global.net.uk [194.126.82.9]) by hub.freebsd.org (Postfix) with ESMTP id 7126815347 for ; Mon, 7 Jun 1999 15:20:49 -0700 (PDT) (envelope-from marko@globalnet.co.uk) Received: from p8bs14a06.client.global.net.uk ([195.147.222.140] helo=marder-1.) by sand.global.net.uk with esmtp (Exim 2.05 #1) id 10r7l8-00009t-00; Mon, 7 Jun 1999 23:20:47 +0100 Received: (from marko@localhost) by marder-1. (8.9.2/8.8.8) id XAA00722; Mon, 7 Jun 1999 23:18:52 +0100 (BST) (envelope-from marko) Date: Mon, 7 Jun 1999 23:18:52 +0100 From: Mark Ovens To: Paul MacKenzie Cc: freebsd-questions@FreeBSD.ORG Subject: Re: TAR Question On Free-BSD Message-ID: <19990607231852.D255@marder-1> References: <4.1.19990607180632.009f9ac0@mail.elehost.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <4.1.19990607180632.009f9ac0@mail.elehost.com>; from Paul MacKenzie on Mon, Jun 07, 1999 at 06:08:36PM -0400 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jun 07, 1999 at 06:08:36PM -0400, Paul MacKenzie wrote: > I know this is a really stupid question but I do not have the time to > figure this out as it is an emergency, > > How do i Create a TAR file on a server as a file (not going to a Tape > Drive) on a particular directory? > > Ie I want to back up the /usr directory and save it in a TAR file called > usr.tar > tar cvf /tmp/usr.tar /usr or, if you want it compressed: tar zcvf /tmp/usr.tar /usr Note that tar(1) will strip the leading ``/'', i.e. the files in the archive will be of the form ``usr/path/file''. HTH > PLEASE HELP! Please provide switches, etc... > > Thanks a million for any assistance (as I know this is very basic and I > feel like an idiot) > > Paul > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://www.users.globalnet.co.uk/~markov _______________________________________________________________ Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK CAD/CAM solutions for Sheetmetal Working Industry mailto:marko@uk.radan.com http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message