BackupPC

Install server

# https://github.com/adferrand/docker-backuppc # cat / # version: "3.7" services: service: image: adferrand/backuppc:latest restart: always environment: TZ: 'Europe/Moscow' ports: - "82:8080" volumes: - "backuppc-etc:/etc/backuppc" - "backuppc-home:/home/backuppc" - "backuppc-src:/usr/local/BackupPC" - "/mnt/BackupPC:/data/backuppc:rw" # networks: # localnetwork: # ipv4_address: "192.168.1.10" volumes: backuppc-etc: {} backuppc-home: {} backuppc-src: {} #networks: # localnetwork: # name: localnetwork # driver: ipvlan # driver_opts: # parent: eno1 # ipvlan_mode: l3 # ipam: # config: # - subnet: "192.168.1.0/24" # ip_range: "192.168.1.1/24" # gateway: "192.168.1.1"

Backup client

client1:

$ passwd backuppc $ apt install rsync $ echo "backuppc ALL=NOPASSWD: $(which rsync)" | sudo tee /etc/sudoers.d/backuppc

backup server:

su - backuppc ssh-copy-id backuppc@client1