Update 'pages/mydoc/mydoc_backup.md'

This commit is contained in:
kiki 2023-01-10 19:24:13 +01:00
parent e91ab0375b
commit 9891252c92

View file

@ -56,11 +56,11 @@ Verificare che abbia funzionato: https://campiaperti.tetaneutral.net/login
Fare il backup di config, data, themes, e custom-apps, che si trovano tutte dentro la cartella app/
#tar -czvf /home/backups_dispensa/data-nextcloud_$(date +%Y%m%d%H%M).tar.gz /opt/nextcloud/app
#tar -czvf /home/backup_dispensa/data-nextcloud_$(date +%Y%m%d%H%M).tar.gz /opt/nextcloud/app
fare il backup del db:
docker exec -i nextcloud-mariadb mysqldump --single-transaction -u [username] -p[password] [db_name] > /home/backups_dispensa/nextcloud-sqlbkp_$(date +%Y%m%d%H%M).bak
docker exec -i nextcloud-mariadb mysqldump --single-transaction -u [username] -p[password] [db_name] > /home/backup_dispensa/nextcloud-sqlbkp_$(date +%Y%m%d%H%M).bak
Cancellare i backup più vecchi.