Look through the tar info manual. (info tar). Your best bet is probably to use the find command to locate the files and create a file of filenames to backup. Then set the FILELIST variable to the name of this file. If the number of files to backup isn't very large you could set the BACKUP_FILES variable with the names of the files to backup. If some of the filenames may contain whitespace, use "-print0" with the `find' command and with `tar' use the --null option.
find basedir/ -daystart -type f -name "*.txt" -ctime -1 -print0 >/tmp/filelist
tar -C basedir/ -cvf backup-$DATE.tar --null -T /tmp/filelist
Last edited by jschiwal; 02-23-2011 at 07:32 PM.