Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jun 1999 23:18:52 +0100
From:      Mark Ovens <markov@globalnet.co.uk>
To:        Paul MacKenzie <pc.mackenzie@utoronto.ca>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: TAR Question On Free-BSD
Message-ID:  <19990607231852.D255@marder-1>
In-Reply-To: <4.1.19990607180632.009f9ac0@mail.elehost.com>; from Paul MacKenzie on Mon, Jun 07, 1999 at 06:08:36PM -0400
References:  <4.1.19990607180632.009f9ac0@mail.elehost.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990607231852.D255>