diff --git a/pages/02.linux/10.nextcloud/default.en.md b/pages/02.linux/10.nextcloud/default.en.md index 1d1be27..1b4972a 100644 --- a/pages/02.linux/10.nextcloud/default.en.md +++ b/pages/02.linux/10.nextcloud/default.en.md @@ -105,16 +105,16 @@ Array of trusted domains. ## Maintenance ### Maintenance Mode Enable maintenance mode to prevent data inconsistencies -`sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on` +`$ sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on` To disable maintenance mode again, run the same command with `--off` instead of `--on` ### Upgrade with CLI -`sudo -u www-data php /var/www/nextcloud/updater/updater.phar` +`$ sudo -u www-data php /var/www/nextcloud/updater/updater.phar` ### Backup Database Dump database to file -``mysqldump --single-transaction -h [server] -u [username] -p[password] [db_name] > nextcloud-sqlbkp_`date +"%Y%m%d"`.bak`` +`$ mysqldump --single-transaction -h [server] -u [username] -p[password] [db_name] > nextcloud-sqlbkp_`date +"%Y%m%d"`.bak` > [Official documentation](https://docs.nextcloud.com/server/latest/admin_manual/maintenance/backup.html) @@ -143,7 +143,7 @@ mariadb -h $server -u $username -p$password -e "DROP DATABASE nextcloud" mariadb -h $server -u $username -p$password -e "CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci" ``` -`mariadb -h $server -u $username -p$password $db_name < nextcloud-sqlbkp.bak` +`$ mariadb -h $server -u $username -p$password $db_name < nextcloud-sqlbkp.bak` > [Nextcloud documentation](https://docs.nextcloud.com/server/latest/admin_manual/maintenance/restore.html)