[sllug-members]: easy backups
Roger Smith
roger at itigger.com
Mon May 1 17:40:07 MDT 2006
On Monday 01 May 2006 15:34, Steve Dibb wrote:
> Now, from what I can tell, tar has --exclude options, but only does
> basic wildcard pattern matching (*.foo), but it has no --include
> options. So how could I tell it to backup just all (*.txt) files, aside
> from excluding every other possible file ending in the directory?
You can cook your own. This will do what you want. :-)
tar -xzvf foo_archive.tgz \
`find /path/to/structure -name "*.txt"`\
/and/this/directory/too\
`find /path/to/structure -name "*.doc"`
Later,
--
Roger Smith <jrsmit14 at exchange.asu.edu>
--
Roger Smith <roger at itigger.com>
More information about the sllug-members
mailing list