mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
Merge pull request #623 from tflidd/backup_maintenance
Put server in maintenance mode before running backup
This commit is contained in:
@@ -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``:
|
||||
|
||||
::
|
||||
|
||||
<?php
|
||||
|
||||
"maintenance" => true,
|
||||
|
||||
Don't forget to change it back to ``false`` when you are finished.
|
||||
|
||||
Backup folders
|
||||
--------------
|
||||
|
||||
Reference in New Issue
Block a user