Re: Tar help need

From: Dennis Clarke (dclarke_at_blastwave.org)
Date: 06/15/04


Date: Tue, 15 Jun 2004 10:04:41 -0400

On Tue, 15 Jun 2004, wilter wrote:

> First of all hi to all.
> Second :sorry for my ignorance but i dont have a lot time to search archives
> and last : how to make tar archives for only some files

I know that others have helped you with this but I thought that I would
take a moment to tell you about star instead of just tar. I see that
you're new at this but you can proably hunt around and get star installed.
You would find it to be a lot better than just tar. If you need to tar up
a LOT of files or you want to ensure that you can move files from very
different versions of UNIx or Linux or what-ever then standard tar ( star
) is the way to go.

Generally, for some sort of task like you describe I would first create a
list of the files that I want to put in the archive :

  find /export/nfs > /tmp/list.txt

  then just tell star that you want to use that list of files ( and
everthing else )

  star -c list=/tmp/list file=/bigarea/export_nfs.tar

The possible benefit to using a list like that is that you can use grep on
that /tmp/list.txt to generate subsets of that list.

Dennis

ps: you can get star and everthing else under the Sun at www.blastwave.org



Relevant Pages

  • Re: cd burning software for Solaris 10 SPARC
    ... conceptually identical archives (i.e. where the files themselves are ... Solaris tar using tkdiff). ... used since 1986 and tells star that the archive has been created by ...
    (comp.unix.solaris)
  • Re: tar --- sun or GNU
    ... >Ssince even Sun posts on their website (for some downloads) an ... If you use star, you will be able to extract all flavors of a TAR archive. ... If you also use star to create archives, ...
    (comp.unix.solaris)
  • Re: cvs commit: src/usr.bin/tar Makefile bsdtar.1 bsdtar.c bsdtar.h bsdtar_platform.h matching.c rea
    ... the last official spec for tar. ... extensions even when not absolutely required. ... format won't use SUSv3 extensions just to store atime/ctime ... and some cpio archives. ...
    (freebsd-current)
  • SUMMARY: Resuming tar restore
    ... the option suggested on the tar man page to ... extract archives based no regular expressions is a no-brainer. ... it should work nicely with disk archives. ... command and the restore was interrupted. ...
    (SunManagers)
  • Re: The argument for fs assistance in handling archives
    ... tar groks tar files, not ls. ... Currently I talk of archives, because I need examples, ... implications immediately after the archive plugin is wrote, ...
    (Linux-Kernel)