SelfHost Hub SelfHost Hub
EN
← 返回到所有服务

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: Apache](https://img.shields.io/badge/License-apache-yellow.svg)](LICENSE)
[![Docker Pulls](https://img.shields.io/docker/pulls/portabase/portabase?color=brightgreen)](https://hub.docker.com/r/portabase/portabase)
[![Helm Chart](https://img.shields.io/badge/Helm-Kubernetes-326ce5?logo=helm&logoColor=white)](https://github.com/Portabase/portabase/pkgs/container/charts%2Fportabase)
[![Platform](https://img.shields.io/badge/platform-linux%20%7C%20macos%20%7C%20windows-lightgrey)](https://github.com/Portabase/portabase)
[![Support Portabase](https://img.shields.io/badge/Support-Portabase-orange)](https://www.buymeacoffee.com/portabase)

[![PostgreSQL](https://img.shields.io/badge/PostgreSQL-336791?logo=postgresql&logoColor=white)](https://www.postgresql.org/)
[![MySQL](https://img.shields.io/badge/MySQL-4479A1?logo=mysql&logoColor=white)](https://www.mysql.com/)
[![MariaDB](https://img.shields.io/badge/MariaDB-003545?logo=mariadb&logoColor=white)](https://mariadb.org/)
[![SQLite](https://img.shields.io/badge/-SQLite-blue?logo=sqlite&logoColor=white)](https://sqlite.org/)
[![Redis](https://img.shields.io/badge/Redis-DC382D?style=flat&logo=Redis&logoColor=white)](https://redis.io/)
[![MongoDB](https://img.shields.io/badge/-MongoDB-13aa52?logo=mongodb&logoColor=white)](https://www.mongodb.com/)
[![Valkey](https://img.shields.io/badge/Valkey-6284fc?style=flat&logo=Valkey&logoColor=white)](https://valkey.io/)
[![Firebird](https://img.shields.io/badge/Firebird-f55b14?style=flat&logo=Firebird&logoColor=white)](https://firebirdsql.org/)
[![Microsoft SQL Server](https://img.shields.io/badge/Microsoft%20SQL%20Server-CC2927?style=flat&logo=microsoftsqlserver&logoColor=white)](https://www.microsoft.com/en-us/sql-server)

[![Self Hosted](https://img.shields.io/badge/self--hosted-yes-brightgreen)](https://github.com/Portabase/portabase)
[![Open Source](https://img.shields.io/badge/open%20source-❤️-red)](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>

![portabase-dashboard](https://github.com/user-attachments/assets/8f2c69d6-f1f9-4b80-b51c-01f6f13b9b62)


</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

[![Contributors](https://contrib.rocks/image?repo=Portabase/portabase)](https://github.com/Portabase/portabase/graphs/contributors)

[!["Support Portabase"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](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 支持以下四种部署方式:

  1. 自动化 CLI(推荐):使用官方 CLI 一键完成 Portabase 及 Agent 的部署。
  2. Docker Run:通过单条 docker run 命令快速启动容器。
  3. Docker Compose:使用官方提供的 docker-compose.yml 进行多容器编排部署。
  4. Kubernetes / Helm:通过官方 Helm Chart 部署到 Kubernetes 集群。

开始前请确保已安装 Docker。详细步骤请参阅官方安装文档

发现更多