mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-09-14 11:06:15 +05:00
feat: route mysql backups through generic destinations
This commit is contained in:
parent
6dfae93855
commit
2cf6791ff8
@ -12,7 +12,7 @@ import { execAsync, execAsyncRemote } from "../process/execAsync";
|
||||
import {
|
||||
getBackupCommand,
|
||||
getBackupTimestamp,
|
||||
getS3Credentials,
|
||||
getRclonePathAndFlags,
|
||||
normalizeS3Path,
|
||||
} from "./utils";
|
||||
|
||||
@ -31,8 +31,8 @@ export const runMySqlBackup = async (mysql: MySql, backup: BackupSchedule) => {
|
||||
});
|
||||
|
||||
try {
|
||||
const rcloneFlags = getS3Credentials(destination);
|
||||
const rcloneDestination = `:s3:${destination.bucket}/${bucketDestination}`;
|
||||
const { flags: rcloneFlags, path: rcloneDestination } =
|
||||
await getRclonePathAndFlags(destination, bucketDestination);
|
||||
const backupCommand = getBackupCommand(
|
||||
backup,
|
||||
rcloneFlags,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user