@@ -391,14 +391,18 @@ location before moving into production.
391391
392392For safely moving the data directory, the recommended actions are:
393393
394- 1. Make sure no cron jobs are running and, if using system cron, that the Nextcloud crontab
395- entry is disabled.
394+ 1. Make sure no cron jobs are running and, if using system cron, that the Nextcloud crontab entry is disabled.
395+
3963962. Stop web/app server(s).
397- 3. Move ``/data `` to the new location (ensure you also move hidden/dot files such as
398- ``.ncdata ``).
397+
398+ 3. Move ``/data `` to the new location (ensure you also move hidden/dot files such as ``.ncdata ``).
399+
3994004. Create a symlink from the original location to the new location.
401+
4004025. Ensure permissions are still correct (including for any parent folders).
403+
4014046. Restart web/app server(s).
405+
4024067. Re-enable Nextcloud's system crontab entry (if applicable).
403407
404408.. note ::
@@ -407,17 +411,21 @@ entry is disabled.
407411It is also possible to move the data directory without using symlinks, but
408412this requires manually modifying the internal ``oc_storages `` database table:
409413
410- 1. Make sure no cron jobs are running and, if using system cron, that the Nextcloud crontab
411- entry is disabled.
414+ 1. Make sure no cron jobs are running and, if using system cron, that the Nextcloud crontab entry is disabled.
415+
4124162. Stop web/app server(s).
413- 3. Move ``/data `` to the new location (ensure you also move hidden/dot files such as
414- ``.ncdata ``).
417+
418+ 3. Move ``/data `` to the new location (ensure you also move hidden/dot files such as ``.ncdata ``).
419+
4154204. Update the value of ``datadirectory `` in your ``config.php ``.
416- 5. Edit the database: In the ``oc_storages `` table, update the path portion of the ``id ``
417- field of the entry beginning with ``local::/old-data-dir/ `` (e.g., change
418- ``local::/old-data-dir/ `` to ``local::/new-data-dir/ ``).
421+
422+ 5. Edit the database: In the ``oc_storages `` table, update the path portion of the ``id `` field of the entry
423+ beginning with ``local::/old-data-dir/ `` (e.g., change ``local::/old-data-dir/ `` to ``local::/new-data-dir/ ``).
424+
4194256. Ensure permissions are still correct (including for any parent folders).
426+
4204277. Restart web/app server(s).
428+
4214298. Re-enable Nextcloud's system crontab entry (if applicable).
422430
423431.. warning ::
0 commit comments