Add HandleBackup component to manage backup creation and updates, replacing the deprecated UpdateBackup component. Integrate dynamic form handling for various database types and metadata requirements. Update ShowBackups to utilize HandleBackup for both creating and updating backups, enhancing the user interface for better backup management.

This commit is contained in:
Mauricio Siu
2025-04-29 21:47:55 -06:00
parent 5055994bd3
commit 24f3be3c00
5 changed files with 210 additions and 801 deletions

View File

@@ -14,7 +14,6 @@ export const restoreComposeBackup = async (
emit: (log: string) => void,
) => {
try {
console.log({ metadata });
const { serverId } = compose;
const rcloneFlags = getS3Credentials(destination);
@@ -78,8 +77,6 @@ export const restoreComposeBackup = async (
emit(stderr);
} else {
const { stdout, stderr } = await execAsync(restoreCommand);
console.log("stdout", stdout);
console.log("stderr", stderr);
emit(stdout);
emit(stderr);
}

View File

@@ -40,8 +40,6 @@ rclone cat ${rcloneFlags.join(" ")} "${backupPath}" | gunzip | docker exec -i ${
emit(stderr);
} else {
const { stdout, stderr } = await execAsync(command);
console.log("stdout", stdout);
console.log("stderr", stderr);
emit(stdout);
emit(stderr);
}