Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!spool.mu.edu!agate!agate!adrianho From: adrianho@barkley.berkeley.edu (Adrian J Ho) Newsgroups: comp.unix.questions Subject: Re: How to archive several files with tar? Message-ID: Date: 9 Jun 91 18:52:23 GMT References: <626E0BEE3F3F601CC4@lure.latrobe.edu.au> Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: University of California, Berkeley Lines: 15 In-Reply-To: jc@raven.bu.edu's message of 8 Jun 91 23: 48:45 GMT In article jc@raven.bu.edu (James Cameron) writes: [sample session deleted] > So, what you are looking for is basically: >% tar cvf file.tar . > to create tape archive of current directory. Make that: tar cvf ../file.tar . The idea is _not_ to put the tar file in the directory you're tar'ing, because your tar file will otherwise end up being included in itself. In the worst case, it could be the _last_ file included, which means that your tar file could end up being _twice_ as large as it's supposed to be.