How can I compare two directories to compare missing files, when the directories don't have the same structure?
Posted
by
David Dean
on Server Fault
See other posts from Server Fault
or by David Dean
Published on 2012-09-10T01:58:00Z
Indexed on
2012/09/10
3:39 UTC
Read the original article
Hit count: 530
linux
|differencing
I've been sent a HDD of new and updated files from an organisation that we are working with, but we already have most of the files sitting on our servers, and would like to update our local versions to match theirs.
Normally, this would be a job for something like rsync, but our problem is that the directory structure they provide is very poorly organised and we've had to rearrange their files in the past to work best with our systems.
So, my question is:
How can I find out which files in the set they have provided are new or different to the versions that we have, when the directory structures are different?
Once that question is answered, we can update the changed files, and work out where to put the new files on our system, probably somewhat manually.
© Server Fault or respective owner