使用 Backrest 备份服务

使用 Docker-compose 部署

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
services:
backrest:
image: docker.1ms.run/garethgeorge/backrest:latest
container_name: backrest
hostname: backrest
restart: unless-stopped
environment:
BACKREST_PORT: "9898"
BACKREST_DATA: "/data"
BACKREST_CONFIG: "/config/config.json"
XDG_CACHE_HOME: "/cache"
TMPDIR: "/tmp"
TZ: Asia/Shanghai

volumes:
# Backrest
- /root/backrest/data:/data
- /root/backrest/config:/config
- /root/backrest/cache:/cache
- /root/backrest/tmp:/tmp
# 设置你的备份文件保存目录。这里设置大目录方便软件内备份
- /root:/root

networks:
DockerBridge:
ipv4_address: 172.20.0.8

networks:
DockerBridge:
external: true