I just downloaded
fdupes and was giving it a try. I am curious to know how the software goes about to determine which file it will put first when multiple files are found. I am running:
Distributor ID: Ubuntu Description: Ubuntu 12.04.3 LTS Release: 12.04 Codename: precise
Here is the command that I ran.
fdupes -Nrd /backup/local/fileserver_backup/home
in that "home" directory there are two directories with identical content (I used
cp -r ./sam ./sam1):
With the command above, I found that all the files were left in sam. But when I tried to run the same command with the following directory structure:
I found that all the files were still left in sam, not sa as I expected.
Now my Questions are:
fdupesalways keep the oldest file?
- How does it sort the files when finding the first and all subsequent duplicates?
- Is this OS dependent?
- Is this something that the user can control?
I have some 300000 lines of duplicate files. Being able to provide the software some guidance like, "always keep files in this directory when given the choice, skip if not available" or something like that would be great addition.