diff --git a/backup.sh b/backup.sh index f89e5da..0975b6d 100755 --- a/backup.sh +++ b/backup.sh @@ -4,7 +4,7 @@ # backup directory backupDir=./backup mkdir -p ${backupDir} -mkdir -p ${backupDir}/cloud-data +mkdir -p ${backupDir}/cloud mkdir -p ${backupDir}/conf mkdir -p ${backupDir}/db @@ -20,7 +20,7 @@ rm ${dbFile} # backup repositories -tar -cj data/cloud -f "${backupDir}/cloud-data/${currentDate}.tbz2" +tar -cj data/cloud -f "${backupDir}/cloud/${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 14333e1..8034c70 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,12 +14,12 @@ - MYSQL_PASSWORD=${NEXTCLOUD_DATABASE_PASSWORD} - NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER} - NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD} - - NEXTCLOUD_DATA_DIR="/srv/cloud-data" + - NEXTCLOUD_DATA_DIR="/srv/cloud" - TZ=${TZ} tmpfs: - /tmp volumes: - - ./data/cloud/:/srv/cloud-data/ + - ./data/cloud/:/srv/cloud/ networks: nextcloud-network: ipv4_address: 172.22.5.100