← 返回到所有服务
GitHub 仓库信息
获取时间 · 2026年6月5日 ★ 948 最新版本: 1.17.4 最后更新: 2026年6月5日
README
<br />
<div align="center">
<a href="https://portabase.io">
<img src="/.github/assets/logo.png" alt="Logo" width="80" height="80">
</a>
<h3 align="center">Portabase</h3>
<p align="center" style="margin-top: 20px; font-style: italic;">
<i>Portabase is a tool designed to simplify the backup and restoration of your database instances. It integrates seamlessly with <a href="https://github.com/Portabase/agent-rust">Portabase agents</a> for managing operations securely and efficiently.</i>
</p>
[](LICENSE)
[](https://hub.docker.com/r/portabase/portabase)
[](https://github.com/Portabase/portabase/pkgs/container/charts%2Fportabase)
[](https://github.com/Portabase/portabase)
[](https://www.buymeacoffee.com/portabase)
[](https://www.postgresql.org/)
[](https://www.mysql.com/)
[](https://mariadb.org/)
[](https://sqlite.org/)
[](https://redis.io/)
[](https://www.mongodb.com/)
[](https://valkey.io/)
[](https://firebirdsql.org/)
[](https://www.microsoft.com/en-us/sql-server)
[](https://github.com/Portabase/portabase)
[](https://github.com/Portabase/portabase)
[![NextJS][NextJS]][NextJS-url]
[![BetterAuth][BetterAuth]][BetterAuth-url]
[![Drizzle][Drizzle]][Drizzle-url]
[![ShadcnUI][ShadcnUI]][ShadcnUI-url]
[![Docker][Docker]][Docker-url]
<p>
<strong>
<a href="https://portabase.io">Website</a> •
<a href="https://portabase.io/docs">Documentation</a> •
<a href="https://www.youtube.com/watch?v=nSTzT27GgAg">Demo</a> •
<a href="https://portabase.io/docs/dashboard/setup">Installation</a> •
<a href="https://github.com/Portabase/portabase/issues/new?labels=bug&template=bug-report---.md">Report Bug</a> •
<a href="https://github.com/Portabase/portabase/issues/new?labels=enhancement&template=feature-request---.md">Request Feature</a>
</strong>
</p>

</div>
## Installation
You have 4 ways to install Portabase:
- Automated CLI (recommended) - [details](https://portabase.io/docs/dashboard/setup#cli)
- Docker Run - [details](https://portabase.io/docs/dashboard/setup#docker)
- Docker Compose setup - [details](https://portabase.io/docs/dashboard/setup#docker-compose)
- Kubernetes with Helm [details](https://portabase.io/docs/dashboard/setup#helm)
- Development setup - [details](https://portabase.io/docs/dashboard/setup#development)
**Ensure Docker is installed on your machine before getting started.**
## Supported databases
| Engine | Support | Supported Versions | Restore |
|:-------------------|:----------|:------------------------------|:--------|
| **PostgreSQL** | ✅ Stable | 12, 13, 14, 15, 16, 17 and 18 | Yes |
| **MySQL** | ✅ Stable | 5.7, 8 and 9 | Yes |
| **MariaDB** | ✅ Stable | 10 and 11 | Yes |
| **MongoDB** | ✅ Stable | 4, 5, 6, 7 and 8 | Yes |
| **SQLite** | ✅ Stable | 3.x | Yes |
| **Redis** | ✅ Stable | 2.8+ | No |
| **Valkey** | ✅ Stable | 7.2+ | No |
| **Firebird** | ✅ Stable | 3.0, 4.0, 5.0 | Yes |
| **MSSQL Server** | ✅ Stable | 2017, 2019, 2022, Azure SQL | Yes |
See the [Database Servers documentation](https://portabase.io/docs/agent/db) for version-specific backup and restore details.
## Contributors
[](https://github.com/Portabase/portabase/graphs/contributors)
[](https://www.buymeacoffee.com/portabase)
## License
Distributed under the Apache License. See `LICENSE.txt` for more details.
[Docker]: https://img.shields.io/badge/Docker-2496ED?logo=docker&logoColor=fff&style=for-the-badge
[NextJS]: https://img.shields.io/badge/next.js-000000?style=for-the-badge&logo=nextdotjs&logoColor=white
[BetterAuth]: https://img.shields.io/badge/Better%20Auth-FFF?logo=betterauth&logoColor=000&style=for-the-badge
[Drizzle]: https://img.shields.io/badge/Drizzle-111?style=for-the-badge&logo=Drizzle&logoColor=c5f74f
[ShadcnUI]: https://img.shields.io/badge/shadcn/ui-000000?style=for-the-badge&logo=shadcn/ui&logoColor=white
[NextJS-url]: https://nextjs.org/
[BetterAuth-url]: https://www.better-auth.com/
[Drizzle-url]: https://orm.drizzle.team/
[ShadcnUI-url]: https://ui.shadcn.com/
[Docker-url]: https://www.docker.com/
Portabase 是一款开源的自托管数据库备份与恢复平台,旨在简化数据库实例的备份管理。它通过部署在数据库容器旁边的轻量级 Portabase Agent 安全、高效地处理备份操作,所有任务均可通过简洁的 Web 控制台统一管理。
支持的数据库
| 数据库引擎 | 状态 | 支持版本 | 恢复支持 | |---|---|---|---| | PostgreSQL | ✅ 稳定 | 12, 13, 14, 15, 16, 17, 18 | 是 | | MySQL | ✅ 稳定 | 5.7, 8, 9 | 是 | | MariaDB | ✅ 稳定 | 10, 11 | 是 | | MongoDB | ✅ 稳定 | 4, 5, 6, 7, 8 | 是 | | SQLite | ✅ 稳定 | 3.x | 是 | | Redis | ✅ 稳定 | 2.8+ | 否 | | Valkey | ✅ 稳定 | 7.2+ | 否 | | Firebird | ✅ 稳定 | 3.0, 4.0, 5.0 | 是 |
主要功能
- 统一控制台:通过单一 Web 界面管理所有数据库备份任务。
- Agent 架构:轻量级 Agent 与数据库容器并行部署,与 Portabase 服务器安全通信。
- 计划备份:为每个数据库实例配置自动备份计划。
- 备份恢复:支持从控制台直接恢复数据库(适用于支持恢复的引擎)。
- 多数据库支持:兼容主流关系型、文档型和键值型数据库。
- 完全开源:Apache-2.0 授权,数据始终存储在自己的基础设施中。
部署方式
Portabase 支持以下四种部署方式:
- 自动化 CLI(推荐):使用官方 CLI 一键完成 Portabase 及 Agent 的部署。
- Docker Run:通过单条
docker run命令快速启动容器。 - Docker Compose:使用官方提供的
docker-compose.yml进行多容器编排部署。 - Kubernetes / Helm:通过官方 Helm Chart 部署到 Kubernetes 集群。
开始前请确保已安装 Docker。详细步骤请参阅官方安装文档。