Change data directory

I run NC 12.0 on Ubuntu Server 16.04
Currently, “data” directory in on /var/www/nextcloud/data
Now I just attached NAS device, mounted on /mnt/nas
I just need to move data from /var/www/nextcloud/data to /mnt/nas/data and make symlink?
Or should I modify something else?
Thank you very much!

Nextcloud version : 12.0
Operating system and version : Ubuntu 16.04
Apache or nginx version : Apache/2.4.18 (Ubuntu)
PHP version : PHP 7.0.15-0ubuntu0.16.04.4

Is already answered here several times :wink:

Do backup of database before. The adjustment of database, if you don’t want to use symlink is especially necessary for preserving shares, comments etc.

1 Like

Sorry… and thank you very much :slight_smile: