feat: route mysql backups through generic destinations

This commit is contained in:
Furox 2026-09-04 20:21:42 +03:00 committed by Furox88
parent 6dfae93855
commit 2cf6791ff8

View File

@ -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,