Touch the file once manually. Then after you have found the list of files touch it again.
manually:
Code:
touch my_touch_file
Then in the script:
Code:
find <dir> -newer my_touch_file > listoffiles.txt
touch my_touch_file
cpio -pdumv /somewhere/else < listoffiles.txt
or do it in the background:
Code:
find <dir> -newer my_touch_file | cpio -pdumv /somewhere/else &
touch my_touch_file
wait
Save the list fist, and then feed that into cpio, otherwise you could get a file that will arrive while you are doing the cpio and you'll never retrieve it.
Porter has a point which I was also wondering about, how can you be sure you won't get a partial? If it is longer term storage it doesn't matter since you will get them next time around, but if the files are being processed then you could end up processing an incomplete file.