mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-26 13:48:46 +00:00
fix: refine volume backup logic and enhance user feedback
- Updated HandleVolumeBackups to conditionally enable mount retrieval based on volumeBackupType, improving accuracy in fetching mounts. - Enhanced backupVolume function to provide user feedback upon starting the compose container, ensuring better clarity during operations.
This commit is contained in:
+1
-1
@@ -134,7 +134,7 @@ export const HandleVolumeBackups = ({
|
|||||||
|
|
||||||
const { data: mounts } = api.mounts.allNamedByApplicationId.useQuery(
|
const { data: mounts } = api.mounts.allNamedByApplicationId.useQuery(
|
||||||
{ applicationId: id || "" },
|
{ applicationId: id || "" },
|
||||||
{ enabled: !!id },
|
{ enabled: !!id && volumeBackupType === "application" },
|
||||||
);
|
);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
|||||||
@@ -113,7 +113,9 @@ const backupVolume = async (
|
|||||||
docker stop $ID`;
|
docker stop $ID`;
|
||||||
startCommand = `
|
startCommand = `
|
||||||
echo "Starting compose container"
|
echo "Starting compose container"
|
||||||
docker start $ID`;
|
docker start $ID
|
||||||
|
echo "Compose container started"
|
||||||
|
`;
|
||||||
}
|
}
|
||||||
return `
|
return `
|
||||||
${stopCommand}
|
${stopCommand}
|
||||||
|
|||||||
Reference in New Issue
Block a user