mirror of
https://github.com/nextcloud/documentation.git
synced 2025-08-16 16:07:43 +00:00
Update backup.rst
Specify MariaDB command Signed-off-by: Keunes <11229646+keunes@users.noreply.github.com>
This commit is contained in:
@ -44,7 +44,7 @@ MySQL/MariaDB
|
||||
^^^^^^^^^^^^^
|
||||
|
||||
MySQL or MariaDB, which is a drop-in MySQL replacement, is the recommended
|
||||
database engine. To backup MySQL/MariaDB::
|
||||
database engine. To backup **MySQL**::
|
||||
|
||||
mysqldump --single-transaction -h [server] -u [username] -p[password] [db_name] > nextcloud-sqlbkp_`date +"%Y%m%d"`.bak
|
||||
|
||||
@ -52,6 +52,8 @@ If you use enabled MySQL/MariaDB 4-byte support (:doc:`../configuration_database
|
||||
|
||||
mysqldump --single-transaction --default-character-set=utf8mb4 -h [server] -u [username] -p[password] [db_name] > nextcloud-sqlbkp_`date +"%Y%m%d"`.bak
|
||||
|
||||
To backup **MariaDB**, replace `mysqldump` with `mariadb-dump` in the above commands.
|
||||
|
||||
SQLite
|
||||
^^^^^^
|
||||
::
|
||||
|
Reference in New Issue
Block a user