Synchronize folders

I have a rather large database of images a video files, totaling around 6 TB, which are linked to Nextcloud as an external storage. Is there a way for me to manually copy the files to a separate drive and then have Nextcloud verify, rather than copy the files?

User the "occ files:scan ..." command to update the Nextcloud database file table afterwards.

You are talking about re-indexing files on the main server. However, I want it to compare the files, perhaps using a hash, instead of re-copying them.

Why should Nextcloud verify files which you’ve copied to a separate drive outside the Nextcloud environment? I think this is more a job which need to be done on the file system level. On Linux different ways exist to do such a job, see .e.g.