Rescan files in my data folder

hi!!! there are any method to rescan files un my data folder?
i migrate nextcloud to another server. i copy db folder and copy data folder.
but there are any photos that not open correctly.
there are any method to rescan folder in my old data folder? to reindex all items in database?
thanks.

1 Like

occ files:scan --user

1 Like

I had done it. But some photos appear like this

Sergio Feria Moreno

Seems not to be a index vor scan issue. You use it with a mobile client? Can you download the file and open it with the device? Could the file be corrupt?

hmm.

Output: The "--user" option does not exist.

I managed to get the process started with “–all” but now it is scanning all user folders…

So has the command changed?

Thanks

If anyone is looking for the command to update a single user.

occ files:scan -- <userid>

E.g for userid foobar

occ files:scan -- foobar

A bit late to the party but I wanted to thank you for the information. This is a powerful command that I wish I’d learned a lot sooner.