@@ -393,14 +393,18 @@ location before moving into production.
393393
394394For safely moving the data directory, the recommended actions are:
395395
396- 1. Make sure no cron jobs are running and, if using system cron, that the Nextcloud crontab
397- entry is disabled.
396+ 1. Make sure no cron jobs are running and, if using system cron, that the Nextcloud crontab entry is disabled.
397+
3983982. Stop web/app server(s).
399- 3. Move ``/data `` to the new location (ensure you also move hidden/dot files such as
400- ``.ncdata ``).
399+
400+ 3. Move ``/data `` to the new location (ensure you also move hidden/dot files such as ``.ncdata ``).
401+
4014024. Create a symlink from the original location to the new location.
403+
4024045. Ensure permissions are still correct (including for any parent folders).
405+
4034066. Restart web/app server(s).
407+
4044087. Re-enable Nextcloud's system crontab entry (if applicable).
405409
406410.. note ::
@@ -409,17 +413,21 @@ entry is disabled.
409413It is also possible to move the data directory without using symlinks, but
410414this requires manually modifying the internal ``oc_storages `` database table:
411415
412- 1. Make sure no cron jobs are running and, if using system cron, that the Nextcloud crontab
413- entry is disabled.
416+ 1. Make sure no cron jobs are running and, if using system cron, that the Nextcloud crontab entry is disabled.
417+
4144182. Stop web/app server(s).
415- 3. Move ``/data `` to the new location (ensure you also move hidden/dot files such as
416- ``.ncdata ``).
419+
420+ 3. Move ``/data `` to the new location (ensure you also move hidden/dot files such as ``.ncdata ``).
421+
4174224. Update the value of ``datadirectory `` in your ``config.php ``.
418- 5. Edit the database: In the ``oc_storages `` table, update the path portion of the ``id ``
419- field of the entry beginning with ``local::/old-data-dir/ `` (e.g., change
420- ``local::/old-data-dir/ `` to ``local::/new-data-dir/ ``).
423+
424+ 5. Edit the database: In the ``oc_storages `` table, update the path portion of the ``id `` field of the entry
425+ beginning with ``local::/old-data-dir/ `` (e.g., change ``local::/old-data-dir/ `` to ``local::/new-data-dir/ ``).
426+
4214276. Ensure permissions are still correct (including for any parent folders).
428+
4224297. Restart web/app server(s).
430+
4234318. Re-enable Nextcloud's system crontab entry (if applicable).
424432
425433.. warning ::
0 commit comments