Tatjana S Heuser <[EMAIL PROTECTED]> wrote: > Rich Teer wrote > > > Now suppose that I accidentally delete a couple of those files; it is very > > desirable to be able to restore just a certain named subset of the files > > in an archive rather than having to restore the whole archive. I'm looking > > for a tool that can do that. > > Now if Joerg wasn't so terse in his replies, he could have told you that star > is actually a more-comfortable-than-the-usual-tar in this regard. Since
I thought that people first read the man oage and then ask.... > the builtin find, you may even restore files you accidentally deleted, but > don't recall the exact location. Now Joerg, be helpful and give a few > examples, please? An important feature of star (when called "star") is that is does not extract files from the archive if they are not newer than the file on disk. Together with an interactive mode and the ability to specify many patterns, this allows to reduce the number of manual interactions with in the interactive mode. Together with the built in find command this help a lot to minimize the amount of typingto get a file back (thing e.g. on usinf the find syntax to specify a time (file age) range for files. > Another feature I am using rather often is the option to diff a directory > against its tar archive to find out what has been added/deleted/modified. > (Or two directories against each other, as in > (cd /tmp; star -c whatever ) | star -diff diffopts=not,times,id > Note that used like this, I assume that another directory called "whatever" > is right under cwd's feet at the time of calling. > Both the diff and the find abilities of star are well worth investigating, > I haven't enough experience using the builtin find yet, but the diff has > several times been a real life saver, detecting corrupt or muddled files, > or just telling apart those ugly duplicated directories. People who know find(1) by heart and who did understand where/how the libfind code is used inside star will be able to use the built in find to make life easier. Well, find(1) uses not a really simple language but once you did understand it, you are able to do even compley things easily. 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/old/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss