diff --git a/Dockerfile b/Dockerfile index a9b5f951..1e104eeb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,7 +29,7 @@ WORKDIR /app # Set production ENV NODE_ENV=production -RUN apt-get update && apt-get install -y curl unzip zip apache2-utils iproute2 && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y curl unzip zip apache2-utils iproute2 rsync && rm -rf /var/lib/apt/lists/* # Copy only the necessary files COPY --from=build /prod/dokploy/.next ./.next diff --git a/apps/dokploy/package.json b/apps/dokploy/package.json index 5f65f484..d66a3b56 100644 --- a/apps/dokploy/package.json +++ b/apps/dokploy/package.json @@ -1,6 +1,6 @@ { "name": "dokploy", - "version": "v0.21.8", + "version": "v0.22.0", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/server/src/utils/backups/web-server.ts b/packages/server/src/utils/backups/web-server.ts index 733d6a59..71df47ba 100644 --- a/packages/server/src/utils/backups/web-server.ts +++ b/packages/server/src/utils/backups/web-server.ts @@ -56,7 +56,9 @@ export const runWebServerBackup = async (backup: BackupSchedule) => { writeStream.write(`Running command: ${postgresCommand}\n`); await execAsync(postgresCommand); - await execAsync(`cp -r ${BASE_PATH}/* ${tempDir}/filesystem/`); + await execAsync( + `rsync -av --ignore-errors ${BASE_PATH}/ ${tempDir}/filesystem/`, + ); writeStream.write("Copied filesystem to temp directory\n");