I have two directories, directory1 and directory2. What is the cleanest way with a linux friendly script that would copy the latest files from directory1 onto directory2 including the same sub directory structures.
Actually, it doesn't have to be he latest, just copy all the files and put them into directory2. I cannot delete directory, it would have to take the files from 1 and put into directory 2.
It would be nice if these files were under source control but they aren't. I don't need to worry about deletes.