diff --git a/backup.sh b/backup.sh index 6873b8d..729a443 100755 --- a/backup.sh +++ b/backup.sh @@ -20,7 +20,7 @@ rm ${dbFile} # backup app data -tar -cj data/app nextcloud.conf -f "${backupDir}/app/${currentDate}.tbz2" +sudo tar -cj data/app nextcloud.conf -f "${backupDir}/app/${currentDate}.tbz2" # backup config files tar -cj data/conf -f "${backupDir}/conf/${currentDate}.tbz2" diff --git a/docker-compose.yml b/docker-compose.yml index 80939e2..32fce4d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,6 @@ tmpfs: - /tmp volumes: - #- nextcloud-www-vol-1:/var/www/html - ./data/app:/var/www/html networks: nextcloud-network: @@ -32,7 +31,6 @@ ports: - "${NEXTCLOUD_WEB_BIND:-127.0.0.1}:${NEXTCLOUD_WEB_PORT:-8080}:80" volumes: - #- nextcloud-www-vol-1:/var/www/html:ro - ./data/app:/var/www/html:ro depends_on: - nextcloud-app @@ -74,4 +72,3 @@ volumes: nextcloud-db-vol-1: - #nextcloud-www-vol-1: