Hi,
I encounter a very strange problem
Below is the code that i will run it to backup my files.
It will go to find all files in a particular folder from one date to another.
The start and end date is a fixed variable.
Example, my start date is 1st Jan 2005 and end date is 31st Jan 2005
Hence, it will pick up all the files in the folder within the date range and copy it to another folder.
Problem:
--------
For some reason, whenever i run it. It will always leave out some files(within the range)....
Hence, i will need to run it few times to be able to copy all of them
Quote:
....
# create 2 dummy files
touch -t $from_year$from_mon$from_day$t_hr$t_min.$t_sec $from_file
touch -t $to_year$to_mon$to_day$t_hr$t_min.$t_sec $to_file
find $OUTQUEUE -name \*.lst.* -newer $from_file ! -newer $to_file| while read LST_FILES;
do
cp -p $LST_FILES $FINAL_DIR
done
...
Anyone ever encounter this kind of problem?