I have got my home directory into a bad situation with a mistyped rm command. I have now got as far as getting a backup onto an external hard drive as regular files.
So I have:
- Folder A: Current home directory: some files missing
- Folder B: Old home directory: some files out of date or don't exist in current home directory
There are plenty of ways I've come across using diff, find etc. to compare the contents of two directories (/home/duncan/ and /media/FreeAgent\ GoFlex\ Drive/old_home/home/duncan/) but that's not what I want.
I am not interested if a file exists in Folder A but not Folder B. I am not interested in anything inside a "dotfile" or "dotfolder". I am not interested in files where the contents differ.
I am only interested in files that exist in Folder B but not Folder A.
How can I check for this, without wasting resources checking various files byte-for-byte?