A simpler option would be to use the cp command, with the -u switch. This sees if the files to be copied are newer than the source, for each file
for example,
cp -u -v -r /path/to/source/files/ /path/to/destination
cp - copy command
-u - update (check if file is newer...)
-v - say what cp is doing
-r - recursive - dont just copy the folder, copy its contents and everything in those folders
I hope this helps
Regards
James
Ps. This only really works for local stuff. For remote stuff, check rsync out
|