diff --git a/admin_manual/configuration_server/background_jobs_configuration.rst b/admin_manual/configuration_server/background_jobs_configuration.rst index 8674eee59..63b07abec 100644 --- a/admin_manual/configuration_server/background_jobs_configuration.rst +++ b/admin_manual/configuration_server/background_jobs_configuration.rst @@ -57,6 +57,8 @@ access your server using the Internet. For example:: URL to call: http[s]:///nextcloud/cron.php +.. _system-cron-configuration-label: + Cron ^^^^ @@ -103,7 +105,7 @@ This approach requires two files: **nextcloudcron.service** and **nextcloudcron. [Unit] Description=Nextcloud cron.php job - + [Service] User=www-data ExecStart=/usr/bin/php -f /var/www/nextcloud/cron.php @@ -119,12 +121,12 @@ Note that the **.service** unit file does not need an ``[Install]`` section. Ple [Unit] Description=Run Nextcloud cron.php every 5 minutes - + [Timer] OnBootSec=5min OnUnitActiveSec=5min Unit=nextcloudcron.service - + [Install] WantedBy=timers.target diff --git a/admin_manual/maintenance/migrating_owncloud.rst b/admin_manual/maintenance/migrating_owncloud.rst index 4fee5401e..3f4913601 100644 --- a/admin_manual/maintenance/migrating_owncloud.rst +++ b/admin_manual/maintenance/migrating_owncloud.rst @@ -15,7 +15,9 @@ See the table below for a version map, where migrating is easily possible: +-------------------+------------------------------+ | ownCloud | Nextcloud | +===================+==============================+ -| 10.0.1 or later | 12.0.x (but at least 12.0.1) | +| 10.0.5 or later | 20.0.x (but at least 20.0.5) | ++-------------------+------------------------------+ +| 10.0.1 - 10.0.5 | 12.0.x (but at least 12.0.1) | +-------------------+------------------------------+ | 10.0.0 | 12.0.0 | +-------------------+------------------------------+ @@ -34,8 +36,21 @@ See the table below for a version map, where migrating is easily possible: so we can at least perform some basic migration tests, before you migrate your production instance. -After downloading the correct version of Nextcloud from our -`older releases page `_, -proceed like described in the :doc:`manual_upgrade` manual. +1. First download the correct version of Nextcloud from our `older releases page `_, -Afterwards you can use the Nextcloud updater to update your instance to the newest version. +2. Make sure to have do a :doc:`backup` before migrating. + +3. Follow the upgrade instructions described in the :doc:`manual_upgrade` manual. + +4. When migrating to Nextcloud 20.0 or later, you will also need to run the following commands after ``occ upgrade``: + + * ``occ db:convert-filecache-bigint`` + * ``occ db:add-missing-columns`` + * ``occ db:add-missing-indices`` + * ``occ db:add-missing-primary-keys`` + +5. If system cron was used, please verify if crontab entry was using the command ``occ system:cron``. If yes, please adjust it to use the ``php`` command instead according to :ref:`the background jobs configuration documentation` + +6. Use the :doc:`Nextcloud built-in updater` to update your instance to the newest version. + +7. Make sure to also verify the "Security & setup warnings" in the "Overview" section on the settings page.