I want to copy what is different in dir 1 to dir 2 maintaining the structure, what is just different will be the content of each folder
/logs/ content, if it's the same then just overwrite, if it doesn't exist, then copy.
I'm trying with
rsync but it doesn't work, it just creates another dir named with source in destination.
Some photos (the structure, content, folder names, order, is the same, what just changes is the text files inside
/logs/ inside each code-username folder).
[![All code-username files in es51]]
As you can see
rsync just creates the source folder in the destination, it's like a
cp -r source destination, what I want is to overwrite logs so I have each logs files in each folder, maintaining the structure.