At 09:39 AM 13/06/2000, you wrote:
>I have been trying to create a tar command that will only tar up those
>files that have been modified in the last 24 hours. Following the man
>pages and some examples in some Linux books, I tried, using gnu tar and
>Redhat 6.2:
>
>
>find / -mtime -1 -fprint /tmp/tarfile.lst
>tar -cvz -T /tmp/tarfile.lst -f test.tar.gz
>
>The -T command is supposed to get names to extract or create from the
>file. But all I get is error messages, or the -T command is ignored and
>all files are tarred up. Also, I really need to exclude some directories,
>such as /proc and /mnt.
>
>What I wound up doing is the opposite, finding files that are *older* than
>one day and writing their names to tarfile.lst, then doing a:
>
>tar cvfpz test.tar.gz / -X /tmp/tarfile.lst
>
>to exclude all the files older than one day. That's cool but I would
>really like to get the -T command to work. Can I also with the -T command
>use the -X command to exclude those dreaded /mnt and /proc directories?
>
>Any help appreciated.

I just tried this and it worked fine for me.

>IE:  tar -cvzf test.tar.gz -T /tmp/tarfile.lst


The syntax I used;   tar -cvzf test.tar.gz -T files.lst

My tar version;
[darryl@slab darryl]$ tar --version
tar (GNU tar) 1.13.17


Darryl


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to