I got two folders, a source S with files (and subfolders and so on):
- a.txt
- b.txt
- c.txt
- ...
and a destination folder D with files:
- a.txt
- b.txt
- b1.txt
- c.txt
- c2.txt
- ...
and I want to delete all files in D that are already present in S, so that D contains just files that are not present in S.
Any ideas, how I can achieve this with standard tools (rsync, robocopy, ...)?
P.S.: In real world S is about 800GB and contains 4*10^6 files and D is about 802GB and contains 4.1X10^6 file spread across the whole subtree.
P.P.S.: Yes, I can do some programming (bash, batch, ...), but I don't want to reinvent the wheel and want to check the (possibly) obvious first.
0 Answers