Duplicate finder application: port Czkawka to NextCloud

Does NextCloud have an app that does duplicate file finding reliably? I haven’t seen glowing reviews of duplicatefinder, nor does it look like it works with newer NextCloud versions.

I have been using Czkawka for this purpose, and it’s a fantastic(!) application … except that once I use it to dedupe my NextCloud user data folder, I get a lot of broken links in Nextcloud. Attempting to clean that up by doing an occ re-scan and maintenance:repair and all that messed up NextCloud completely, to the point where it looks like I have to do a clean re-install.

(And yes, I looked into using ZFS for this job, but somehow it didn’t inspire me too much confidence.)

Would it be possible to get someone who knows what he’s doing to port Czkawka to NextCloud as an app?

Context: NextCloud 31.0.0 on TrueNAS 24.10.2.

It is a bad idea to delete files directly on the server because the Nextcloud database is no longer correct. It is better to synchronize all files on the desktop computer first and delete the files there.

If you want someone to integrate this program, you can create a ticket on GitHub and hope that a developer will find it useful and take it up.

Because here in the forum there is too little chance that a developer will read along and create a ticket themselves.

Thanks for replying. Methinks that an occ rescan or a maintenance repair should fix that, shouldn’t it? Anyway, so far it looks like it doesn’t, which is a pity.

It will work if you add the files as “local external storage” to your Nextcloud instance.

1 Like

Now this is interesting, though I am not sure I understand: are you, by any chance, saying that occ files:scan and maintenace:repair work properly (at this point in time) only on “local external storage”? If so, why would anyone bother with anything other than “local external storage”? We should all work with “local external storage,” and be done with it, right!?


It’s just a folder on the server which ist embeded as external storage to Nextcloud.

You can do what you want with the files in it on the server without any occ command to repair the Nextcloud database.

You can also connect with Samba to the folder and everthing in it is immediately online. That’s how i am using it in the local net on the local Nextcloud instance, just for syncing files with the mobile device.

Very handy.

1 Like

I am guessing, however, that the files in the “external storage” folder will not benefit from whatever … niceties Nextcloud offers for files in its database, right? Meaning they won’t show up in Nextcloud’s Photos or … whatever, right? So those files will not be inventoried by Nextcloud’s database, right?

The files are listed in the Nextcloud database as external storage, but appear as normal with the users.

But it could be that one or the other app misinterprets this, like the Music App but the Audio Player works as usual.

I did not test with Photos if the app is working, i am just using the external storage folder for syncing with the mobile device. And this works for every file type.

Thanks. At this point I am puzzled as to what the benefit would be to choose “internal” storage as opposed to simply working only with “external” storage in Nextcloud across the board, meaning no more “internal” storage.

Some apps do not work with “external local storage” but you can assign the files to users without the app “group folder” and you can connect to Samba or FTP and you can delete the files on the server without disturbing the Nextcloud database.

The backup situation is also different because the files are not in the Nextcloud data directory and therefore do not require a user quota in the Nextcloud instance.

It would initially be sufficient if this program deleted the files using occ files:delete instead of directly interfering with the file system.

That would, indeed, be an idea, though in my case occ might not be available from outside of the Nextcloud container. See also this.