轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像
交易
充值流量¥7起我的订单
文档
工具
提交工单页面收录
backup-manager

vincentperaud/backup-manager

vincentperaud

Automated rsync backup runner with interactive CLI, retention cleanup, and Mattermost notifications.

下载次数: 0状态:社区镜像维护者:vincentperaud仓库类型:镜像最近更新:7 个月前
让 AI 帮你使用轩辕镜像? · 展开查看说明 · 点击收起说明

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这句话即可:

请先完整阅读并严格遵守以下文档中的全部规则与要求:

https://xuanyuan.cloud/agents.md

在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

镜像简介
下载命令
镜像标签列表与下载命令
使用轩辕镜像,把时间还给真正重要的事。
点击查看

🛡️ Backup Manager

!https://img.shields.io/badge/version-1.1.0-blue?style=for-the-badge

Backup Manager is a containerized backup orchestrator that keeps rsync-based retention policies tidy, runs preparatory commands, and notifies your team when jobs succeed or fail.

📚 Table of Contents

  • 📚 Table of Contents
  • ✨ Features
  • ⚙️ Requirements
  • 🚀 Quick Start
  • 🧑‍💻 Interactive Mode
  • 🧰 Configuration
    • SSH key format
  • 🐳 Docker Usage
  • 📬 Notifications
  • 🧪 Development
  • 📝 License

✨ Features

  • Declarative YAML configuration for servers, destinations, jobs, and retention rules.
  • Incremental backups via rsync with daily, weekly, and monthly retention pruning.
  • Pre-backup shell commands for dumping databases or preparing artifacts.
  • Optional Mattermost notifications on success or failure (Slack planned but not implemented yet).
  • Ships as a ready-to-run Docker image for consistent execution anywhere Docker is available.
  • Interactive terminal workflow to launch jobs, list remote backups, and download snapshots.

⚙️ Requirements

  • Docker Engine with the Compose plugin (or Docker Desktop).
  • Access to your preferred container registry hosting the Backup Manager image.
  • Mounted SSH key that can reach your rsync destination.
  • Any tooling needed by your pre-commands available either inside the container or via mounted sockets (for example the Docker socket).

🚀 Quick Start

  1. Create a working directory on the host that will run the backups:
    bash
    mkdir -p ~/ops/backup-manager
    cd ~/ops/backup-manager
    
  2. Place config.yml and compose.yml in this directory (copy or download the samples from this repository).
  3. Edit config.yml to define your destinations, jobs, retention policy, and notifications.
  4. Adjust compose.yml so that it points to the published image (example below) and mount every volume you want to back up.
  5. Launch a backup run:
    bash
    docker compose pull
    docker compose run --rm backup-manager
    
  6. (Optional) Mount a host directory at /shared when you want to download backups via the interactive mode.

The container prints progress spinners, executes pre-commands, performs rsync transfers, and tidies old backups according to your retention policy.

🧑‍💻 Interactive Mode

  • Launch locally with yarn interactive (or the shorthand yarn i) to pick jobs, run backups, list remote snapshots, or download archives.
  • When running the Docker image, invoke docker compose run --rm backup-manager interactive to start the same pro***-driven workflow.
  • Downloads are written to /shared/<job-name>/<timestamp>/; mount a host directory at /shared (see compose.sample.yml) to keep retrieved data after the container exits.

🧰 Configuration

  • settings.server_name: friendly name used in log output and notifications.
  • settings.retention: number of daily, weekly, and monthly snapshots to keep.
  • settings.destinations: currently supports rsync targets (host, port, user, SSH key); s3 is defined but not implemented yet.
  • jobs: each job defines a destination, optional pre_commands, and a list of sources (file or folder). Use {{TMP_DIR}} within commands and paths to reference the per-job temporary directory.
  • notifications: choose mattermost or slack for on_success and on_failure; provide the matching configuration section. Slack is not implemented yet, so only mattermost has effect today.

Use config.sample.yml as a starting point.

SSH key format

  • Prefer generating an Ed25519 key (ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519) for rsync destinations; it works out of the box in the container.
  • If you keep using RSA, convert the private key to the legacy PEM format so OpenSSH can read it inside the container:
    ssh-keygen -p -m PEM -f ~/.ssh/id_rsa

🐳 Docker Usage

  • Compose file: start from compose.sample.yml and replace the build section with your published image. For example:

    services:
        backup-manager:
            image: registry.example.com/backup-manager:latest
            restart: "no"
            volumes:
                - ./config.yml:/config.yml:ro
                - ~/.ssh/id_rsa_no_password:/id_rsa
                - my_website1_public_html:/volumes/my_website1_public_html:ro
                - my_website2_public_html:/volumes/my_website2_public_html:ro
                - ./shared:/shared
    
    volumes:
        my_website1_public_html:
            external: true
        my_website2_public_html:
            external: true
    

    Replace registry.example.com/backup-manager:latest with the actual image reference you publish.

  • Config file: place config.yml next to your compose file and ensure every source path mounted into the container matches the paths configured in jobs[].sources[].path.

  • Shared folder: map a host directory at /shared when you plan to download backups via the interactive mode.

  • Runtime:

    • Non-interactive: docker compose run --rm backup-manager
    • Interactive: docker compose run --rm backup-manager interactive

📬 Notifications

  • Success messages list each backed-up source.
  • Failure messages include the error message block.
  • Mattermost credentials require a bot token, channel ID, and server URL.
  • Slack support is scaffolded in the config schema but not implemented yet.

🧪 Development

  • TypeScript sources live in src/.
  • Run locally with yarn start if you need to iterate before publishing a new image.
  • Format with your preferred Prettier setup if needed.
  • Tests are not yet defined; add them under src/ and wire them into package.json as needed.

📝 License

MIT © Vincent Peraud

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 backup-manager 镜像标签

docker pull docker.xuanyuan.run/vincentperaud/backup-manager:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull vincentperaud/backup-manager:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

一键安装

一键安装 Docker

Linux Docker 一键安装

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Apple Container

macOS 原生容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

Unraid

Unraid NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

iKuai 镜像加速

宝塔面板

一键配置镜像源

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

功能

版本功能对比

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 专业版 · 企业版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

账号

失败是否计费

manifest · blob · 计费

申请开发票(企业 / 个人)

企业 · 个人 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
vincentperaud/backup-manager
定价查看流量套餐与价格
博客Docker 镜像公告与技术博客
专业版 · 高速稳定拉取镜像
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
50GB 仅 ¥7/年
专业版 · 高速稳定拉取镜像
50GB 仅 ¥7/年
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
用户协议·隐私政策·增值电信业务经营许可证:浙B2-20261007·©2024-2026 源码跳动©2024-2026 杭州源码跳动科技有限公司·商务合作:点击复制邮箱

更多 backup-manager 镜像推荐

osixia/backup-manager logo

osixia/backup-manager

osixia
定期运行备份管理器的Docker镜像,用于自动执行周期性备份任务。
3 次收藏10万+ 次下载
6 年前更新
dockerhubazureseavus/backup-manager logo

dockerhubazureseavus/backup-manager

dockerhubazureseavus
暂无描述
1万+ 次下载
3 年前更新
pingcap/backup-manager logo

pingcap/backup-manager

pingcap
暂无描述
9.5千+ 次下载
6 年前更新
dockerhubazureseavus/backup-manager logo

dockerhubazureseavus/backup-manager

dockerhubazureseavus
暂无描述
1万+ 次下载
3 年前更新

查看更多 backup-manager 相关镜像