diff --git a/apps/dokploy/components/dashboard/database/backups/show-backups.tsx b/apps/dokploy/components/dashboard/database/backups/show-backups.tsx index 0a6517f96..ff31da750 100644 --- a/apps/dokploy/components/dashboard/database/backups/show-backups.tsx +++ b/apps/dokploy/components/dashboard/database/backups/show-backups.tsx @@ -23,6 +23,12 @@ import { RestoreBackup } from "./restore-backup"; import { AlertBlock } from "@/components/shared/alert-block"; import { HandleBackup } from "./handle-backup"; import { cn } from "@/lib/utils"; +import { + MariadbIcon, + MongodbIcon, + MysqlIcon, + PostgresqlIcon, +} from "@/components/icons/data-tools-icons"; interface Props { id: string; @@ -169,78 +175,109 @@ export const ShowBackups = ({
{postgres?.backups.map((backup) => (
-
-
- {backup.backupType === "compose" && ( - <> -
- - Service Name - - - {backup.serviceName} +
+
+
+ {backup.backupType === "compose" && ( +
+ {backup.databaseType === "postgres" && ( + + )} + {backup.databaseType === "mysql" && ( + + )} + {backup.databaseType === "mariadb" && ( + + )} + {backup.databaseType === "mongo" && ( + + )} +
+ )} +
+ {backup.backupType === "compose" && ( +
+

+ {backup.serviceName} +

+ + {backup.databaseType} + +
+ )} +
+
+ + {backup.enabled ? "Active" : "Inactive"}
+
+
-
- - Database Type - - - {backup.databaseType} - -
- - )} -
- Destination - - {backup.destination.name} - -
-
- Database - - {backup.database} - -
-
- Scheduled - - {backup.schedule} - -
-
- Prefix Storage - - {backup.prefix} - -
-
- Enabled - - {backup.enabled ? "Yes" : "No"} - -
-
- Keep Latest - - {backup.keepLatestCount || "All"} - +
+
+ + Destination + +

+ {backup.destination.name} +

+
+ +
+ + Database + +

+ {backup.database} +

+
+ +
+ + Schedule + +

+ {backup.schedule} +

+
+ +
+ + Prefix Storage + +

+ {backup.prefix} +

+
+ +
+ + Keep Latest + +

+ {backup.keepLatestCount || "All"} +

+
-
+ +
Run Manual Backup @@ -295,7 +332,7 @@ export const ShowBackups = ({