From fa3784a34b2be70f8f2810245d662788df499b44 Mon Sep 17 00:00:00 2001 From: tflidd Date: Sun, 3 Dec 2017 00:56:07 +0100 Subject: [PATCH] Put server in maintenance mode before running backup --- admin_manual/maintenance/backup.rst | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/admin_manual/maintenance/backup.rst b/admin_manual/maintenance/backup.rst index aa509c54b..525877b8e 100644 --- a/admin_manual/maintenance/backup.rst +++ b/admin_manual/maintenance/backup.rst @@ -6,8 +6,26 @@ To backup an Nextcloud installation there are four main things you need to retai #. The config folder #. The data folder -#. The database #. The theme folder +#. The database + +Maintenance mode +---------------- + +``maintenance:mode`` locks the sessions of logged-in users and prevents new logins in order to prevent inconsistencies of your data. You must run ``occ`` as the HTTP user, like this example on Ubuntu Linux:: + + $ sudo -u www-data php occ maintenance:mode --on + +You may also put your server into this mode by editing :file:`config/config.php`. +Change ``"maintenance" => false`` to ``"maintenance" => true``: + +:: + + true, + +Don't forget to change it back to ``false`` when you are finished. Backup folders --------------