[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to compare contents of two folders against third one?



On 01.11.2023 20:07, Nicolas George wrote:
Hi.

Alexander V. Makartsev (12023-11-01):
I have a "/source-folder/" which contains very large tree of folders and
files.
The word is “directory”, not “folder”.

Oh, I'm so sorry, I didn't meant to invoke wrath of the ancients.
I thought about it and eventually decided to name sample directories - folders.
Mostly because I didn't wanted to answer possible questions like "wtf is a directory?".
And I must to warn you, if you open Xfce file manager (Thunar), that blasphemous word "folder" will be everywhere!

Now, is there an effective way to compare combined contents of two folders
"/destination-folder-one/" and
"/destination-folder-two/" against a "/source-folder/" to show if there is
anything that was left out?
When you say “combined content”, you mean merged, right? There are a lot
of different ways to combine.
Yes, that is exactly what I meant.

You could mount -t overlay your two destination directories together and
try rsync or diff.

I've never heard about "mount -t overlay" before and it did the trick.
Thanks for suggestion.

--
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀

Reply to: