I provide a Unicode / MinGW port of finddupe duplicate file detector and eliminator for Windows by Matthias Wandel on github.

Reasons

I really like finddupe when I look for duplicate files among books or photos. It is fast and clever thanks to CRC file signatures. It can also find NTFS hard links, which is difficult otherwise. Please refer to Matthias site for full description. My favourites are finddupe c:\MyBooks and finddupe -listlink c:\MyBooks.

Current version 1.23 of finddupe is ASCII-only and fails on non-ASCII filenames, as is often the case with books.

Alternatives

If you are looking for a GUI, there is AllDup and Duplicate Commander, but frankly, a lot of clicking around. Under Linux there is fdupes, hardlink and rdfind. Backup them with rsync -H, but it has some issues.

Port

I ported finddupe to Unicode (actually UTF-16) and MinGW as version 1.24. I used tchar.h wrapper, so ASCII build is still possible. Then I added some more functionality (-depth, -ign) in version 1.25.

I hate this wchar_t stuff, but I really like finddupe. Why didn't Microsoft go for UTF-8? It wasn't there at that time. utf8everywhere.org makes an interesting reading.

MinGW-w64 is required for Unicode wmain as described here. I used Ruby DevKit-mingw64-32-4.7.2 from rubyinstaller.org.

I provide a Win32 binary, so you do not have to compile yourself. There is also a 64-bit build.

Usage

c:\> finddupe -h
finddupe v1.25 compiled May 11 2017
Usage: finddupe [options] [-ref] <filepat> [filepat]...
Options:
 -bat <file.bat> Create batch file with commands to do the hard
                 linking.  run batch file afterwards to do it
 -hardlink       Create hardlinks.  Works on NTFS file systems only.
                 Use with caution!
 -del            Delete duplicate files
 -v              Verbose
 -sigs           Show signatures calculated based on first 32k for each file
 -rdonly         Apply to readonly files also (as opposed to skipping them)
 -ref <filepat>  Following file pattern are files that are for reference, NOT
                 to be eliminated, only used to check duplicates against
 -z              Do not skip zero length files (zero length files are ignored
                 by default)
 -u              Do not print a warning for files that cannot be read
 -p              Hide progress indicator (useful when redirecting to a file)
 -j              Follow NTFS junctions and reparse points (off by default)
 -listlink       hardlink list mode.  Not valid with -del, -bat, -hardlink,
                 or -rdonly, options
 -ign <substr>   Ignore file pattern, like .git, .svn or .bak (can be repeated)
 -depth <num>    Maximum recursion depth, default 0 = infinite
  <filepat>      Pattern for files.  Examples:
                  c:\**        Match everything on drive C
                  c:\**\*.jpg  Match only .jpg files on drive C
                  **\foo\**    Match any path with component foo
                               from current directory down

Examples

Photo upload from a digital camera

Your shiny and new digital camera connects to your home server via WiFi. Every time you do an upload, all of those mega-pixel photos appear in your incoming folder again. You want to see only new files, so you do finddupe -del -ref pictures_dir incoming_dir to get rid of incoming duplicates. The existing pictures in pictures_dir will be taken as reference only, the duplicates in incoming_dir will be removed.

Even if your home server is Linux, this should work too, even if a bit slower: finddupe -ref \\server\public\Foto\2017 \\server\incoming (TODO UNC paths do not work yet).

BTW, if you want to set the JPG file time to the time picture was taken (stored in EXIF), I have a exif_date.rb script for you.

Books coming back

You share your digital books with your brother. Some time later you have a look into his books, and there are plenty of yours in there, and some more you do not have yet. To save your disk space and see new books you do finddupe -hardlink my_book_dir his_book_dir (can add some more, but they need to be on the same NTFS disk).

A NFTS hardlink (mklink /H new_link file) is having many filenames for the same contents. It is very transparent to the aplications, and to the user too. It is difficult to see it is a link. Dangerous like a very clean window. There are fsutil.exe hardlink list C:\Windows\System32\notepad.exe (needs admin rights) and SysInternals FindLinks (no admin, no globs, no sources :(). Both need to know file.

With finddupe -listlink you can see which files are linked.
I also recommend an excellent Link Shell Extension by Hermann Schinagl.

Check in files from other repositories

You want to use some scripts from your private Git repositories at work and check them in the company Subversion repository. You want to be DRY, so you think about symbolic links and core.symlinks=true, but you realize that symlinks are no good on Windows until 10.something, as they need elevated privileges, because somebody at Microsoft decided so. Or you just get the text file with the link path instead.

Interestingly enough hardlinks, which are much more tricky, are easy to set up and need no admin rights. You just copy your files back and forth and then you hardlink them:
finddupe -hardlink -depth 1 -ign .git -ign .svn my_scripts1 my_scripts2
Git status doesn't see any difference, but if you are editing a file in one repository, it changes also in another one.

License

Original license by Matthias Wandel: Finddupe is totally free. Do whatever you like with it. You can integrate it into GPL or BSD style licensed programs if you would like to.

Dodaj komentarz

Komentarzy

https://great-galaxy.ru, https://90sad.ru, https://thebachelor.ru, https://kreativ-didaktika.ru, https://cultureinthecity.ru, https://vanillarp.ru, https://core-rpg.ru, https://urkarl.ru, https://upsskirt.ru, https://remonttermexov.ru, https://yarus-kkt.ru, https://imgtube.ru, https://center-esm.ru, https://skatertsamobranka.ru, https://svetnadegda.ru, https://shvejnye.ru, https://tione.ru, https://lostfiilmtv.ru, https://voenoboz.ru, https://my-caffe.ru, https://kanunnikovao.ru, https://adventime.ru, https://fishexpo-volga.ru, https://church-bench.ru, https://ipodtouch3g.ru, https://cardsfm.ru, https://beksai.ru, https://kaizen-tmz.ru, https://mehelper.ru, https://useit2.ru, https://taya-auto.ru, https://krylslova.ru, https://kairblog.ru, https://orenbash.ru, https://engelsspravka.ru, https://jennifer-love.ru, https://auto-know-how.ru, https://stalker-land.ru, https://btlforum.ru, https://bediva.ru, https://avto-yar.ru, https://bar-atra.ru, https://kinocirk.ru, https://portalbook.ru, https://nashi-grudnichki.ru, https://up-top.ru, https://kids-pencils.ru, https://tonersklad.ru, https://millionigrushek.ru/, https://ancientcivs.ru, https://btlforum.ru/, https://oleant.ru, https://bestanimation.ru, https://ancientcivs.ru, https://l-spb.ru, https://noviy-status.ru, https://mirka-master.ru, https://amurplanet.ru, https://anekdotitut.ru, https://antipushkin.ru, https://fotonons.ru, https://kinokabra.ru, https://mymeizuclub.ru, https://zaslushaem.ru, https://privlec-obras.ru, https://zhiloy-komplex.ru, https://kirportal.ru, https://ladytech.ru, https://a-so.ru, https://artcet.ru, https://avtomaxi22.ru, https://med-like.ru, https://metal82.ru, https://kryshi-remont.ru, https://admlihoslavl.ru, https://elegos.ru, https://allkigurumi.ru, https://40-ka.ru, https://100sm.ru, https://club-columb.ru, https://softnewsportal.ru, https://daibob.ru, https://gulliverauto.ru, https://doutuapse.ru, https://russkiy-spaniel.ru, https://vektor-meh.ru, https://stroydvor89.ru, https://magic-magnit.ru, https://kvest4x4.ru, https://photo-res.ru, https://kmc-ia.ru
Napisany przez Wed, 30 Apr 2025 07:10:58 przez DarrellWem
https://great-galaxy.ru, https://90sad.ru, https://thebachelor.ru, https://kreativ-didaktika.ru, https://cultureinthecity.ru, https://vanillarp.ru, https://core-rpg.ru, https://urkarl.ru, https://upsskirt.ru, https://remonttermexov.ru, https://yarus-kkt.ru, https://imgtube.ru, https://center-esm.ru, https://skatertsamobranka.ru, https://svetnadegda.ru, https://shvejnye.ru, https://tione.ru, https://lostfiilmtv.ru, https://voenoboz.ru, https://my-caffe.ru, https://kanunnikovao.ru, https://adventime.ru, https://fishexpo-volga.ru, https://church-bench.ru, https://ipodtouch3g.ru, https://cardsfm.ru, https://beksai.ru, https://kaizen-tmz.ru, https://mehelper.ru, https://useit2.ru, https://taya-auto.ru, https://krylslova.ru, https://kairblog.ru, https://orenbash.ru, https://engelsspravka.ru, https://jennifer-love.ru, https://auto-know-how.ru, https://stalker-land.ru, https://btlforum.ru, https://bediva.ru, https://avto-yar.ru, https://bar-atra.ru, https://kinocirk.ru, https://portalbook.ru, https://nashi-grudnichki.ru, https://up-top.ru, https://kids-pencils.ru, https://tonersklad.ru, https://millionigrushek.ru/, https://ancientcivs.ru, https://btlforum.ru/, https://oleant.ru, https://bestanimation.ru, https://ancientcivs.ru, https://l-spb.ru, https://noviy-status.ru, https://mirka-master.ru, https://amurplanet.ru, https://anekdotitut.ru, https://antipushkin.ru, https://fotonons.ru, https://kinokabra.ru, https://mymeizuclub.ru, https://zaslushaem.ru, https://privlec-obras.ru, https://zhiloy-komplex.ru, https://kirportal.ru, https://ladytech.ru, https://a-so.ru, https://artcet.ru, https://avtomaxi22.ru, https://med-like.ru, https://metal82.ru, https://kryshi-remont.ru, https://admlihoslavl.ru, https://elegos.ru, https://allkigurumi.ru, https://40-ka.ru, https://100sm.ru, https://club-columb.ru, https://softnewsportal.ru, https://daibob.ru, https://gulliverauto.ru, https://doutuapse.ru, https://russkiy-spaniel.ru, https://vektor-meh.ru, https://stroydvor89.ru, https://magic-magnit.ru, https://kvest4x4.ru, https://photo-res.ru, https://kmc-ia.ru
Napisany przez Tue, 29 Apr 2025 11:53:57 przez StevenDon
Также рекомендую вам почитать по теме - https://bestanimation.ru . И еще вот - https://l-spb.ru .
Napisany przez Sat, 26 Apr 2025 23:40:16 przez StevenDon
Также рекомендую вам почитать по теме - https://oleant.ru . И еще вот - https://24-ad.ru .
Napisany przez Fri, 25 Apr 2025 19:18:17 przez StevenDon
https://avto-yar.ru/bytovki-v-arendu-udobnoe-reshenie-dlya-strojki-i-dachi/
Napisany przez Wed, 23 Apr 2025 03:34:55 przez BillyPiola
https://avto-yar.ru/bytovki-v-arendu-udobnoe-reshenie-dlya-strojki-i-dachi/
Napisany przez Tue, 22 Apr 2025 06:44:55 przez BillyPiola
Также рекомендую вам почитать по теме - https://l-spb.ru . И еще вот - https://ancientcivs.ru .
Napisany przez Mon, 21 Apr 2025 14:50:43 przez StevenDon
https://avto-yar.ru/bytovki-v-arendu-udobnoe-reshenie-dlya-strojki-i-dachi/
Napisany przez Mon, 21 Apr 2025 09:57:51 przez BillyPiola
Также рекомендую вам почитать по теме - https://stalker-land.ru//arenda-avtomobilya-bez-voditelya-v-sankt-peterburge-svoboda-peredvizheniya-bez-lishnih-ogranichenij/. И еще вот - https://stalker-land.ru//arenda-avtomobilya-bez-voditelya-v-sankt-peterburge-svoboda-peredvizheniya-bez-lishnih-ogranichenij/.
Napisany przez Sat, 19 Apr 2025 00:06:50 przez BillyPiola
Также рекомендую вам почитать по теме - https://24-ad.ru . И еще вот - https://ancientcivs.ru .
Napisany przez Fri, 18 Apr 2025 13:33:58 przez StevenDon
Также рекомендую вам почитать по теме - https://yarus-kkt.ru . И еще вот - https://my-caffe.ru .
Napisany przez Fri, 18 Apr 2025 09:59:13 przez BillyPiola
Также рекомендую вам почитать по теме - https://orenbash.ru. И еще вот - https://cultureinthecity.ru .
Napisany przez Wed, 16 Apr 2025 07:07:10 przez BillyPiola
Также рекомендую вам почитать по теме - https://40-ka.ru . И еще вот - https://urkarl.ru .
Napisany przez Tue, 15 Apr 2025 19:43:04 przez BillyPiola
Также рекомендую вам почитать по теме - https://krylslova.ru . И еще вот - https://fotonons.ru .
Napisany przez Tue, 15 Apr 2025 13:52:37 przez BillyPiola
Также рекомендую вам почитать по теме - https://ancientcivs.ru . И еще вот - https://trickss.ru .
Napisany przez Tue, 15 Apr 2025 07:50:38 przez BillyPiola
структура реферата
Napisany przez Fri, 11 Apr 2025 17:30:39 przez StevenDon
лучшие школы для подготовки к егэ
Napisany przez Sun, 06 Apr 2025 19:09:52 przez BillyPiola
https://receptmult.ru/
Napisany przez Sat, 05 Apr 2025 11:35:49 przez StevenDon
каталог телеграм каналов тегстат
Napisany przez Thu, 03 Apr 2025 10:10:53 przez StevenDon
https://krylslova.ru/
Napisany przez Sat, 29 Mar 2025 13:14:01 przez StevenDon
https://shvejnye.ru/
Napisany przez Wed, 26 Mar 2025 13:36:14 przez BillyPiola
Рекомендую сайты: fotonons.ru, artcet.ru, 40-ka.ru, urkarl.ru, upsskirt.ru, yarus-kkt.ru, cultureinthecity.ru, imgtube.ru, great-galaxy.ru, shvejnye.ru, lostfiilmtv.ru, voenoboz.ru, my-caffe.ru, kanunnikovao.ru, adventime.ru, kaizen-tmz.ru
Napisany przez Fri, 21 Mar 2025 11:47:04 przez greatgalaxy
Рекомендуем - селектор казино вход
Napisany przez Sun, 16 Mar 2025 12:49:41 przez selectorcasino
Рекомендую - селектор казино вход
Napisany przez Sun, 16 Mar 2025 00:51:57 przez selector
Рекомендую - selector casino сайт
Napisany przez Thu, 13 Mar 2025 13:11:03 przez selector casino
Рекомендуем - селектор казино зеркало
Napisany przez Wed, 12 Mar 2025 20:14:59 przez selectorcasino
Рекомендую - ремонт техники Hobot
Napisany przez Sun, 09 Mar 2025 08:31:16 przez Hobot
Рекомендую - ремонт пылесосов xiaomi в москве
Napisany przez Thu, 06 Mar 2025 14:26:49 przez remontredmi

Następny wpis Poprzedni wpis