πΎ Duplicati
Duplicati is een backup oplossing die automatisch backups maakt naar de Synology NAS.
Algemene Info
| Item | Waarde |
|---|---|
| Container | duplicati |
| Image | lscr.io/linuxserver/duplicati:latest |
| Poort | 8200 |
| URL | duplicati.hub |
| Backup bron | /home/jaap/docker |
| Backup doel | Synology NAS (192.168.1.12) |
Functies
- β Versleutelde backups - AES-256 encryptie
- β Incrementele backups - Alleen gewijzigde bestanden
- β Compressie - Kleinere backup bestanden
- β Scheduling - Automatische backups
- β Retentie - Slim backup beheer
- β Verificatie - Backup integriteit checken
Backup Configuratie
Huidige Setup
| Setting | Waarde |
|---|---|
| Bron | /source (mapped naar ~/docker) |
| Bestemming | \\192.168.1.12\backups\minipc1 |
| Schema | Dagelijks om 03:00 |
| Retentie | Smart backup retention |
| Encryptie | AES-256 met passphrase |
Wat wordt gebackupt
~/docker/
βββ pihole/ # Pi-hole config & data
βββ unbound/ # Unbound config
βββ homer/ # Homer dashboard config
βββ uptime-kuma/ # Monitoring data
βββ nginx-proxy-manager/ # NPM config & certs
βββ portainer/ # Portainer data
βββ guacamole/ # Guacamole config
βββ duplicati/ # Duplicati config (meta)
βββ mkdocs/ # Documentatie
βββ docker-compose.yml
Retentie Policy
"Smart backup retention" bewaart: - Laatste 7 dagen: Alle backups - Laatste 4 weken: 1 backup per week - Laatste 12 maanden: 1 backup per maand
Backup Beheren
Status Bekijken
- Ga naar duplicati.hub
- Klik op je backup job
- Zie laatste backup tijd en status
Handmatige Backup
- Open Duplicati
- Klik op backup job
- Klik Run now
Backup Herstellen
- Klik op backup job
- Klik Restore
- Kies versie (datum/tijd)
- Selecteer bestanden/mappen
- Kies restore locatie
- Klik Restore
Restore locatie
Kies "Original location" om te overschrijven, of een andere locatie om te vergelijken.
Nieuwe Backup Job Maken
- Klik Add backup
- General: Naam en encryptie
- Destination:
- Type:
SMB / CIFS - Server:
192.168.1.12 - Path:
/backups/[naam] - Username/Password: NAS credentials
- Source data: Selecteer mappen
- Schedule: Tijd en frequentie
- Options: Retentie, compressie
Voorbeeld: Proxmox Backups
Voor Mini PC 2 Proxmox config:
| Setting | Waarde |
|---|---|
| Destination | \\192.168.1.12\backups\proxmox |
| Source | /etc/pve, /var/lib/pve-cluster |
| Schedule | Wekelijks, zondag 04:00 |
Verificatie
Handmatig VerifiΓ«ren
- Klik op backup job
- Klik Verify
- Duplicati checkt alle backup bestanden
Auto-verificatie
In backup options: - Verify after backup: Check na elke backup - Verify interval: Periodiek alle backups checken
Troubleshooting
Backup mislukt
Symptomen
- Rode status
- "Backup failed" melding
Diagnose:
- Klik op failed backup
- Klik Show log
- Zoek naar errors
Veelvoorkomende oorzaken:
-
NAS niet bereikbaar:
-
Credentials fout:
- Check username/password
-
Test SMB verbinding handmatig
-
Disk vol:
- Check ruimte op NAS
-
Verwijder oude backups
-
Netwerk timeout:
- Verhoog timeout in advanced options
NAS share niet gevonden
Symptomen
- "Path not found"
- "Access denied"
Oplossing:
- Check share naam op Synology:
-
DSM β Control Panel β Shared Folder
-
Check permissies:
-
Gebruiker moet read/write hebben
-
Test van command line:
Backup duurt te lang
Optimalisaties:
- Exclude patronen:
-
Voeg toe:
*.log,*.tmp,node_modules -
Block size:
- Verhoog voor grote bestanden
-
Default: 50MB
-
Compressie:
- Zet uit voor al gecomprimeerde data
Oude backups nemen te veel ruimte
Oplossing:
- Klik op backup job
- Klik Commandline β Compact
- Of: pas retentie aan (minder versies bewaren)
Restore Test
Test regelmatig
Test maandelijks of je backups daadwerkelijk te restoren zijn!
Restore Test Procedure
- Kies een oude backup
- Restore naar
/tmp/restore-test/ - Vergelijk met origineel:
- Verwijder test:
Email Notificaties
- Settings β Options β Email
- Vul in:
- SMTP server
- Username/password
- From/To adressen
- Configureer wanneer te mailen:
- On success
- On warning
- On error
Docker Compose
duplicati:
image: lscr.io/linuxserver/duplicati:latest
container_name: duplicati
restart: unless-stopped
ports:
- "8200:8200"
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Amsterdam
volumes:
- ./duplicati/config:/config
- /home/jaap/docker:/source:ro
- /tmp/duplicati-restore:/restore
networks:
- proxy-net