mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-20 06:35:22 +02: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:
@@ -134,7 +134,7 @@ export const HandleVolumeBackups = ({
|
||||
|
||||
const { data: mounts } = api.mounts.allNamedByApplicationId.useQuery(
|
||||
{ applicationId: id || "" },
|
||||
{ enabled: !!id },
|
||||
{ enabled: !!id && volumeBackupType === "application" },
|
||||
);
|
||||
|
||||
const {
|
||||
|
||||
@@ -113,7 +113,9 @@ const backupVolume = async (
|
||||
docker stop $ID`;
|
||||
startCommand = `
|
||||
echo "Starting compose container"
|
||||
docker start $ID`;
|
||||
docker start $ID
|
||||
echo "Compose container started"
|
||||
`;
|
||||
}
|
||||
return `
|
||||
${stopCommand}
|
||||
|
||||
Reference in New Issue
Block a user