Install app using the Nextcloud App Store inside your Nextcloud. See https://apps.nextcloud.com/apps/duplicatefinder
You can either use the command or the gui.
occ duplicates:find-all [options]
Depending on your NextCloud setup, the occ
command may need to be called differently, such as sudo php occ duplicates:find-all [options]
or nextcloud.occ duplicates:find-all [options]
. Please refer to the occ documentation for more details
-u --user
scan files of the specified user (-u admin)-p --path
limit scan to this path (--path="/alice/files/Photos")