Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 2916  / 1 Year ago, tue, december 20, 2022, 6:18:17

I have 4 hard disks and want to find out which files on this four harddisks (including sub directories) are duplicates. It should be checked not only within a harddisk but against all the others as well.



The hard disks are large (3TB) therefor it has to be efficient (first filename than checksum checks or so)


More From » scripts

 Answers
4

I used the FSlint project and find to get the thing done.



My process to get all of this sorted out on multiple disks with the requirement to run everything via CLI & screen




  1. sudo apt-get install fslint

  2. find path1/2/3 -type f -empty -delete & find path1/2/3 -type d -empty -delete (to get rid of alle empty or not completly copied stuff)

  3. /usr/share/fslint/fslint/findsn path1 path2 path3 (delete everything which is stored on the same directory with the same size on different disks)

  4. /usr/share/fslint/fslint/findup path1 path2 path3 (delete all duplicate files)

  5. find path1/2/3 -type d -empty -delete (to get rid of the directories which are empty after findup)



after that I was able to mount all disks as a combined drive with mhddfs again without having duplicates wasting diskspace again


[#22469] Wednesday, December 21, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
laiuct

Total Points: 44
Total Questions: 105
Total Answers: 107

Location: Seychelles
Member since Mon, Feb 15, 2021
3 Years ago
laiuct questions
;