mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-09 16:05:23 +02:00
fix: change backup file naming to Windows-compatible format
This commit is contained in:
@@ -19,7 +19,8 @@ export const runComposeBackup = async (
|
||||
const project = await findProjectById(environment.projectId);
|
||||
const { prefix, databaseType } = backup;
|
||||
const destination = backup.destination;
|
||||
const backupFileName = `${new Date().toISOString()}.sql.gz`;
|
||||
const timestamp = new Date().toISOString().replace('T', '_').replace(/:/g, '-').replace('.', '_');
|
||||
const backupFileName = `${timestamp}.sql.gz`;
|
||||
const bucketDestination = `${normalizeS3Path(prefix)}${backupFileName}`;
|
||||
const deployment = await createDeploymentBackup({
|
||||
backupId: backup.backupId,
|
||||
|
||||
Reference in New Issue
Block a user