08Backup - amagerard/Wiki GitHub Wiki

HOME

Return to the list of wikis

RedHat10/Wikijs

1- Network 2- NodejsRedis 3- MariaDB 4- Wikijs 5- Nginx
6- Selinux 7- UpdateWikijs 8- Backup 9- GnomeShell 10 Troubleshoots

8. Backup.

Save the wikijs database.
mariadb-dump -u root -p wikijs > backup_wikijs.sql

Save only data.
mariadb-dump -u root -p --no-create-db --no-create-info wikijs > backup_wikijs_data.sql

Restore the wikijs database.
mariadb -u root -p wikijs < backup_wikijs.sql

Restore only date.
mariadb -u root -p wikijs < backup_wikijs_data.sql

Change password.
mariadb -u root -p mysql
MariaDB [mysql]> select user,host,password from mysql.user;
alter user 'username'@'localhost' identified by 'NewPassword';