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.
Gary
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.