add: backuppc app

This commit is contained in:
root 2022-12-20 09:25:48 +00:00
parent 8123388a94
commit ffb53fc4c1
4 changed files with 82 additions and 0 deletions

28
backuppc/README.md Normal file
View File

@ -0,0 +1,28 @@
# BackupPC
## Use cases
Notes:
* BackupPC is usually meant to be installed on a centralized server
* It can also backup himself
* Very usuful to backup remote hosts
## Important
When adding for a first time an host, please ensure you choose rsync in: `Edit Config > Xfer > XferMethod = rsync`
To validate ssh host connection, you can run from the host:
```
ssh-keyscan -H 192.168.1.162 >> conf/ssh/known_hosts
ssh-keyscan -H router.example.net >> conf/ssh/known_hosts
chmod 600 conf/ssh/known_hosts
```
Of from inside the container:
```
docker exec -ti -u 1000 backuppc-backuppc-1 bash
ssh-keyscan -H router.example.net >> ~/.ssh/known_hosts
```

View File

@ -0,0 +1,27 @@
---
version: "3.9"
services:
backuppc:
# image: tiredofit/backuppc:6.0.0 # BROKEN ! https://github.com/tiredofit/docker-backuppc/issues/15
image: tiredofit/backuppc:5.3.16
environment:
- CONTAINER_NAME=backuppc-app
- USER_BACKUPPC=$app_puid
- GROUP_BACKUPPC=$app_pgid
#- NGINX_AUTHENTICATION_TYPE=BASIC
#- NGINX_AUTHENTICATION_BASIC_USER1=backuppc
#- NGINX_AUTHENTICATION_BASIC_PASS1=backuppc
#- DEBUG_MODE=FALSE
- DEBUG_MODE=TRUE
- TZ=$app_tz
working_dir: /data/
volumes:
- $app_dir_conf/etc:/etc/backuppc
- $app_dir_conf/home:/home/backuppc
- $app_dir_data:/var/lib/backuppc
- $app_dir_logs:/www/logs
restart: unless-stopped

View File

@ -0,0 +1,24 @@
---
version: "3.9"
services:
backuppc:
# image: tiredofit/backuppc:6.0.0 # BROKEN ! https://github.com/tiredofit/docker-backuppc/issues/15
image: tiredofit/backuppc:5.3.10 # Newer version seems broken: https://github.com/tiredofit/docker-backuppc/issues/15
environment:
- BACKUPPC_UUID=$app_puid
- BACKUPPC_GUID=$app_pgid
#- NGINX_AUTHENTICATION_TYPE=BASIC
#- NGINX_AUTHENTICATION_BASIC_USER1=backuppc
#- NGINX_AUTHENTICATION_BASIC_PASS1=backuppc
#- DEBUG_MODE=FALSE # Start script of tiredofit
- TZ=$app_tz
working_dir: /data/
volumes:
- $app_dir_conf/etc:/etc/backuppc
# - $app_dir_conf/home:/home/backuppc/ # is also valid
- $app_dir_conf/ssh:/home/backuppc/.ssh/
- $app_dir_data:/var/lib/backuppc
- $app_dir_logs:/www/logs

3
backuppc/vars.yml Normal file
View File

@ -0,0 +1,3 @@
traefik_svc_port: "80"
homepage_icon: mdi-cloud-upload-outline
app_description: BackupPC is a high-performance, enterprise-grade system for backing up Linux, Windows and macOS PCs and laptops to a server's disk.