Refactored

This commit is contained in:
2023-04-26 14:38:02 +02:00
parent 3b50b9e6f7
commit 6a4dea3582
18 changed files with 30 additions and 27 deletions

View File

@@ -13,7 +13,7 @@ NEXTCLOUD_APPLICATION_DOCKER_CONTAINER=nextcloud-application-1
To update the nextcloud container execute the following commands on the server:
```bash
docker exec -it -u www-data $NEXTCLOUD_APPLICATION_DOCKER_CONTAINER /var/www/html/occ maintenance:mode --on
sudo python /home/administrator/scripts/docker-volume-backup/docker-volume-backup.py
sudo python {{path_administrator_scripts}}docker-volume-backup/docker-volume-backup.py
export COMPOSE_HTTP_TIMEOUT=600
export DOCKER_CLIENT_TIMEOUT=600
cd {{path_docker_compose_files}}nextcloud && docker-compose down
@@ -58,7 +58,7 @@ and disable the not functioning apps.
cd {{path_docker_compose_files}}nextcloud &&
docker-compose down &&
docker exec -i nextcloud_database_1 mysql -u nextcloud -pPASSWORT nextcloud < "/Backups/$(sha256sum /etc/machine-id | head -c 64)/docker-volume-backup/latest/nextcloud_database/sql/backup.sql" &&
cd /home/administrator/scripts/docker-volume-backup &&
cd {{path_administrator_scripts}}docker-volume-backup &&
bash ./server_docker-volume-recover.sh "nextcloud_data" "$(sha256sum /etc/machine-id | head -c 64)"
```