*BSD News Article 89893


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!tezcat!news-chi-8.sprintlink.net!news-pull.sprintlink.net!news.sprintlink.net!news-dc-5.sprintlink.net!news.crocker.com!not-for-mail
From: schlegel@crocker.com (Mark Schlegel)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: simple question about tar
Date: 20 Feb 1997 17:23:05 GMT
Organization: Crocker Communications (413) 585-5164
Lines: 29
Message-ID: <5ei19p$2jc$1@news.crocker.com>
References: <330BCCCA.2A16@gol.com>
NNTP-Posting-Host: rmc1.crocker.com
X-Newsreader: TIN [UNIX 1.3 950515BETA PL0]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35934

Bill Wilson (atijapan@gol.com) wrote:
: Hello.
: 
: I have an exteamly simple question about taring files on freeBSD. How
: can I tar everything within a directory, including files subdirectories,
: files within subdirectories, etc. 
: 
: With bsdi it's simply tar -cvf /public_html, but I am getting "can't
: open directory" errors with the same command in freebsd.
: 
: Thanks, and appologies for the level of this question.
: Bill Wilson


no problem Bill, what I think is happening is that in some
unix's what you have means, "tar the directory public_html
that's in the root directory" and since I"m pretty sure
your public_html is not in the root, your problem is the "/"

ie, the "/" should only lead the directory name in the single
case of the root directory, in all others just say:


tar -cvf public_html      is what you really want

Mark

ps. note I'm assuming the directory that you want to get that
'contains' everything you want to tar is public_html