Hi! I have moved files from old drive to a new one with the help of rsync command.
By the result I lost all shares: this I restored manually.
The most challenging is that the syncing appeared to be broken: so, if I create a file in web it is not synced by the desktop client at local pc. However, it works back: when I create a file at local pc, it is synced at web.
Hi! I have disconnected the server from network, created a new folder /media/data, chowned it with www-data, and ran the command rsync -avh --progress --info=progress2 /media/nc/data/* /media/data
As I understand it was a mistake to use rsync instead of cp command?
What is the best way of transferring data from one storage to another?
Hi @knedlyk, using Rsync to move your data is recommended, but maybe you forgot to do something…
have you launched occ files:scan --all command ?
have set the new folder as a new data folder in Nextcloud?
Yes. That’s why the process in the documentation has you either keep the same path (or a symbolic link in place to maintain it) or edit the oc_storages database table to update the path. Just changing datadirectory is not sufficient.