Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!odin.oar.net!malgudi.oar.net!imci4!newsfeed.internetmci.com!info.ucla.edu!nnrp.info.ucla.edu!news.ucdavis.edu!usenet From: Michael White <mdwhite@ucdavis.edu> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: tar / ft command help Date: Thu, 25 Jul 1996 15:45:09 -0700 Organization: University of California, Davis Lines: 33 Message-ID: <31F7F8F5.355C@ucdavis.edu> References: <4ss83o$dn@brians-pc.brians-domain.com> <4t493c$ltg@Mercury.mcs.com> NNTP-Posting-Host: mujibur.engr.ucdavis.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.01 (X11; I; HP-UX B.10.01 9000/712) CC: root@brians-domain.com Leslie Mikesell wrote: > > In article <4ss83o$dn@brians-pc.brians-domain.com>, > Brian Bayorgeon <root@brians-domain.com> wrote: > > > >when I issue the [tar cvzf - / | ft "full backup"] command, will > >tar recurse into the other file systems such as /var and /usr?? > > Yes, but if you prefer to store each file system separately, GNUtar > has the --one-file-system option to keep it from crossing mount points. > > Les Mikesell > les@mcs.com Look at the man page for tar. There is a X switch that will allow you to exclude files if you don't want them. Just have a file which includes the names of the directories you want excluded (I think for your case you would have two lines with usr and var on them, no /'s). I have used this in the past. Works quite well. -- - Mike ======================================================================== | | | _ | Michael D. White _______|/V\|_______ University of California, Davis X------------[_\(.)/_]------------X Dept. of Mechanical & Aeronautical Engineering /o`~|~`o\ white@halfdome.engr.ucdavis.edu O H O http://www.engr.ucdavis.edu/~mdwhite http://www-mae.engr.ucdavis.edu/CFD/white ========================================================================