[PR #146] [MERGED] Feat: backup db in server #362

Closed
opened 2026-03-03 11:29:34 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dflow-sh/dflow/pull/146
Author: @malla-lokesh
Created: 5/5/2025
Status: Merged
Merged: 5/7/2025
Merged by: @malla-lokesh

Base: mainHead: backup-db


📝 Commits (10+)

  • 0ec4e04 chore: added export db plugin
  • 852c6e0 chore: Added db import plugin
  • f90e569 chore: Added worker internal backup
  • a54558a chore: Added backup collection and moved database options to constants file
  • 8efec2a chore: Completed Internal DB backup UI
  • fdc0ebb fix: remove debug logs and add validation for app names in database unlinking
  • d0231b2 feat: added status badge on service-card
  • acc4d62 feat: add context menu for service deletion with confirmation dialog
  • 704aa92 feat: update dialog title to reflect template creation or update
  • 74ef6e1 fix: deployments tab loading issue due to defaultPopulate on deployments-collection

📊 Changes

15 files changed (+721 additions, -23 deletions)

View changed files

src/actions/dbBackup/index.ts (+134 -0)
src/actions/dbBackup/validator.ts (+10 -0)
📝 src/app/(frontend)/(dashboard)/dashboard/project/[id]/service/[serviceId]/layout.client.tsx (+2 -0)
📝 src/app/(frontend)/(dashboard)/dashboard/project/[id]/service/[serviceId]/page.tsx (+21 -0)
src/components/service/Backup.tsx (+202 -0)
📝 src/lib/constants.ts (+23 -0)
📝 src/lib/dokku/index.ts (+6 -0)
src/lib/dokku/plugin/database/backup/internal/export.ts (+17 -0)
src/lib/dokku/plugin/database/backup/internal/import.ts (+17 -0)
📝 src/lib/searchParams.tsx (+1 -0)
📝 src/payload-types.ts (+34 -0)
📝 src/payload.config.ts (+2 -0)
src/payload/collections/Backups/index.ts (+67 -0)
📝 src/payload/collections/Services/index.ts (+1 -23)
src/queues/database/backup/internalBackup.ts (+184 -0)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dflow-sh/dflow/pull/146 **Author:** [@malla-lokesh](https://github.com/malla-lokesh) **Created:** 5/5/2025 **Status:** ✅ Merged **Merged:** 5/7/2025 **Merged by:** [@malla-lokesh](https://github.com/malla-lokesh) **Base:** `main` ← **Head:** `backup-db` --- ### 📝 Commits (10+) - [`0ec4e04`](https://github.com/dflow-sh/dflow/commit/0ec4e0412d4194462c1673b0848f295bca1cd5bc) chore: added export db plugin - [`852c6e0`](https://github.com/dflow-sh/dflow/commit/852c6e0c7a87b6a55339365545caaa58e33d39e3) chore: Added db import plugin - [`f90e569`](https://github.com/dflow-sh/dflow/commit/f90e5697a39bf45bddbe9e5cc2a0c8af4c7e9444) chore: Added worker internal backup - [`a54558a`](https://github.com/dflow-sh/dflow/commit/a54558a39779702dfc3f58329bda96a22daf59e2) chore: Added backup collection and moved database options to constants file - [`8efec2a`](https://github.com/dflow-sh/dflow/commit/8efec2ac67c4ee3e5403579b209c57747664cc9c) chore: Completed Internal DB backup UI - [`fdc0ebb`](https://github.com/dflow-sh/dflow/commit/fdc0ebb6016b912fe4d4647a731ba9f6953e4d4c) fix: remove debug logs and add validation for app names in database unlinking - [`d0231b2`](https://github.com/dflow-sh/dflow/commit/d0231b2c05fec069d4e526632096a437c7a2593b) feat: added status badge on service-card - [`acc4d62`](https://github.com/dflow-sh/dflow/commit/acc4d6254a91dd544ee3bd3e90f969841d77668d) feat: add context menu for service deletion with confirmation dialog - [`704aa92`](https://github.com/dflow-sh/dflow/commit/704aa922f3e2698ff020ed95ecd0280a9b0c305f) feat: update dialog title to reflect template creation or update - [`74ef6e1`](https://github.com/dflow-sh/dflow/commit/74ef6e1581397c1028d03ab7a4314ef0705bead9) fix: deployments tab loading issue due to defaultPopulate on deployments-collection ### 📊 Changes **15 files changed** (+721 additions, -23 deletions) <details> <summary>View changed files</summary> ➕ `src/actions/dbBackup/index.ts` (+134 -0) ➕ `src/actions/dbBackup/validator.ts` (+10 -0) 📝 `src/app/(frontend)/(dashboard)/dashboard/project/[id]/service/[serviceId]/layout.client.tsx` (+2 -0) 📝 `src/app/(frontend)/(dashboard)/dashboard/project/[id]/service/[serviceId]/page.tsx` (+21 -0) ➕ `src/components/service/Backup.tsx` (+202 -0) 📝 `src/lib/constants.ts` (+23 -0) 📝 `src/lib/dokku/index.ts` (+6 -0) ➕ `src/lib/dokku/plugin/database/backup/internal/export.ts` (+17 -0) ➕ `src/lib/dokku/plugin/database/backup/internal/import.ts` (+17 -0) 📝 `src/lib/searchParams.tsx` (+1 -0) 📝 `src/payload-types.ts` (+34 -0) 📝 `src/payload.config.ts` (+2 -0) ➕ `src/payload/collections/Backups/index.ts` (+67 -0) 📝 `src/payload/collections/Services/index.ts` (+1 -23) ➕ `src/queues/database/backup/internalBackup.ts` (+184 -0) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 11:29:34 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dflow#362
No description provided.