blobaugh
10-04-2004, 07:09 PM
i want to write a simple script that will scan a given directory and copy all of its contents to another, and remember what it copied that way the next time it is run it will only check to see if any of the files in the given directory have changed at all. how would i go about doing that? i prolly need a loop statement to scan all the files right? how do i find the time/date stamps of the files to see if i need to update them? and what sort of database should i use to store the info on which files were previously copied? would a plain text file work? i would like to do this in bash script so i can learn it more too if that helps narrow the field down at all