diff --git a/packages/server/src/utils/backups/web-server.ts b/packages/server/src/utils/backups/web-server.ts index e0a7f7bf8..e7ae83c27 100644 --- a/packages/server/src/utils/backups/web-server.ts +++ b/packages/server/src/utils/backups/web-server.ts @@ -2,10 +2,13 @@ import type { BackupSchedule } from "@dokploy/server/services/backup"; import { execAsync } from "../process/execAsync"; import { getS3Credentials } from "./utils"; import { findDestinationById } from "@dokploy/server/services/destination"; -import { paths } from "@dokploy/server/constants"; +import { IS_CLOUD, paths } from "@dokploy/server/constants"; export const runWebServerBackup = async (backup: BackupSchedule) => { try { + if (IS_CLOUD) { + return; + } const destination = await findDestinationById(backup.destinationId); const rcloneFlags = getS3Credentials(destination); const timestamp = new Date().toISOString().replace(/[:.]/g, "-"); diff --git a/packages/server/src/utils/restore/web-server.ts b/packages/server/src/utils/restore/web-server.ts index 07e44c1f3..635e6f7ae 100644 --- a/packages/server/src/utils/restore/web-server.ts +++ b/packages/server/src/utils/restore/web-server.ts @@ -1,7 +1,7 @@ import type { Destination } from "@dokploy/server/services/destination"; import { getS3Credentials } from "../backups/utils"; import { execAsync } from "../process/execAsync"; -import { paths } from "@dokploy/server"; +import { paths, IS_CLOUD } from "@dokploy/server/constants"; import { mkdtemp } from "node:fs/promises"; import { join } from "node:path"; import { tmpdir } from "node:os"; @@ -11,6 +11,9 @@ export const restoreWebServerBackup = async ( backupFile: string, emit: (log: string) => void, ) => { + if (IS_CLOUD) { + return; + } try { const rcloneFlags = getS3Credentials(destination); const bucketPath = `:s3:${destination.bucket}`;