bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files


From: Joerg Schilling
Subject: Re: [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files
Date: Sat, 21 Apr 2012 13:41:52 +0200
User-agent: nail 11.22 3/20/05

Stefan Tomanek <address@hidden> 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:address@hidden (home) Jörg Schilling D-13353 Berlin
       address@hidden                (uni)  
       address@hidden (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



reply via email to

[Prev in Thread] Current Thread [Next in Thread]