tar noob question

Kenneth Burgener kenneth at uvlug.org
Wed Mar 23 13:21:24 MST 2005


Steve Dibb wrote:
> I'm trying to use tar to backup a bunch of csv files on my harddrive 
> (*.csv), but I can't figure out how to get tar to only include a certain 
> file extension.  I know you can use an exclude list which works well, 
> but I always leave one out and then I have to fix it and start over.
> 
> Is there someway to backup files with just one extension?
> 
> Steve


You could use the find command:

find . -iname "*.csv" -exec tar -af archive.tar {} \;






More information about the PLUG mailing list