On Wed, Dec 20, 2000 at 08:30:42AM -0800, Thornton Prime <[EMAIL PROTECTED]> wrote:
| > I would like to write a script for backup purpose. I have a file
| > which contains all the backup files list like,
| > # cat file.lst
| > ./a/foo.c
| > ./b/c/voo.c
| > At all, how can redirect this file list to perform the tar command
|
| The tar man page reports the flag:
| -T, --files-from F
| get names to extract or create from file F
Good suggestion.
| You could probably also do something like
| tar cv `cat file.lst` > mytarfile.tar
That, of course, will try to write to his tape drive, leaving an
empty file in mytarfile.tar.
Try this:
tar cvf mytarfile.tar `cat file.lst`
or a bit more robust:
tar cvfT mytarfile.tar file.lst
Cheers,
--
Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
The first ninety percent of the task takes ninety percent of the time, and
the last ten percent takes the other ninety percent.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list