You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: admin_manual/maintenance/backup.rst
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,20 +40,28 @@ Backup database
40
40
41
41
.. warning:: Before restoring a backup see :doc:`restore`
42
42
43
-
MySQL/MariaDB
44
-
^^^^^^^^^^^^^
43
+
MariaDB
44
+
^^^^^^^
45
45
46
-
MySQL or MariaDB, which is a drop-in MySQL replacement, is the recommended
47
-
database engine. To backup **MySQL**::
46
+
MariaDB is the recommended database engine. To backup MariaDB using `mariadb-dump <https://mariadb.com/docs/server/clients-and-utilities/backup-restore-and-import-clients/mariadb-dump>`_::
If you have enabled MariaDB 4-byte support (:doc:`../configuration_database/mysql_4byte_support`, needed for emoji), add ``--default-character-set=utf8mb4``::
If you use enabled MySQL/MariaDB 4-byte support (:doc:`../configuration_database/mysql_4byte_support`, needed for emoji), you will need to add ``--default-character-set=utf8mb4`` like this::
61
+
If you have enabled MySQL 4-byte support (:doc:`../configuration_database/mysql_4byte_support`, needed for emoji), add ``--default-character-set=utf8mb4``::
Copy file name to clipboardExpand all lines: admin_manual/maintenance/restore.rst
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,10 +32,23 @@ Restore database
32
32
The easiest way to do this is to drop and recreate the database.
33
33
SQLite does this automatically.
34
34
35
+
MariaDB
36
+
^^^^^^^
37
+
38
+
MariaDB is the recommended database engine. To restore MariaDB using the `mariadb <https://mariadb.com/docs/server/clients-and-utilities/mariadb-client/mariadb-command-line-client>`_ client::
mariadb -h [server] -u [username] -p[password] -e "CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci"
47
+
35
48
MySQL
36
49
^^^^^
37
50
38
-
MySQL is the recommended database engine. To restore MySQL::
51
+
To restore MySQL::
39
52
40
53
mysql -h [server] -u [username] -p[password] -e "DROP DATABASE nextcloud"
41
54
mysql -h [server] -u [username] -p[password] -e "CREATE DATABASE nextcloud"
@@ -59,10 +72,17 @@ Restoring
59
72
.. note:: This guide assumes that your previous backup is called
60
73
"nextcloud-sqlbkp.bak"
61
74
75
+
MariaDB
76
+
^^^^^^^
77
+
78
+
MariaDB is the recommended database engine. To restore MariaDB using the `mariadb <https://mariadb.com/docs/server/clients-and-utilities/mariadb-client/mariadb-command-line-client>`_ client::
0 commit comments