Stefan Tomanek <[email protected]> wrote:
> > And besides, it sounds like 'tar' can handle
> > the situation in question, or something pretty close
> > to it, without needing any changes.
>
> How would you achieve the following with tar alone?
Just a note: --no-unquote, --no-recursion, --null, -T are options unknown to
"tar". They nay be known by gtar, so let me correct the quoted text to:
> find / -xdev -cnewer /var/backups/lastrun -path '/var/cache/*' ! -type d
> -prune -o -print0 -fls /var/backups/filelist \ |
> gtar cpf - --no-unquote --no-recursion --null -T -
Just for your information:
-T If the option file= or f= is omitted and the -T option
is present, star will use the device indicated by the
TAPE environment variable, if set.
Using the -p option seems to be a mistake....
let me try to make an example:
star cf - -find / -xdev -newercm /var/backups/lastrun -path '/var/cache/*' !
-type d -prune -fls /var/backups/filelist
This could be reduced to:
star cf - -find /var/cache -xdev -newercm /var/backups/lastrun ! -type d
-prune -fls /var/backups/filelist
BTW: you could of course also use the extended features of libfind, such as
-chown, -chgrp, -chmod and many other extensions,
What is important here: you can do things, you can't (or can't do easily) with
separate runs of find and tar.
star xp -find -newer -1d2h
will e.g. extract all files newer that 26 hours.
star forbids all find commands that write to stdout in case the archive is also
written to stdout.
Jörg
--
EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
[email protected] (uni)
[email protected] (work) Blog:
http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily