tar question

Kevin J. Cummings cummings at kjchome.homeip.net
Sun Nov 9 00:42:02 UTC 2008


chloe K wrote:
> Hi
> I have number of selected files to backup and it is also in different 
> folders
> How can I make it easy?

Look at the -T or the --files-from option to tar.  You can put all of 
the filenames in a single file and instruct to archive just the files 
listed in that one file.  Is this what you want?

> eg:
> tar zcvf select-file.tar.gz from selected file or tar zcvf 
> select-file.tar.gz (from selected files in file.txt)?

tar zcvfT selected-file.tar.gx files.txt

-- 
Kevin J. Cummings
kjchome at rcn.com
cummings at kjchome.homeip.net
cummings at kjc386.framingham.ma.us
Registered Linux User #1232 (http://counter.li.org)




More information about the fedora-list mailing list