Last active
June 1, 2021 02:20
-
-
Save jg3/fb23d320661cd6382eb16495d3ab1bb7 to your computer and use it in GitHub Desktop.
My Duplicati Stack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: "2.1" | |
services: | |
duplicati: | |
image: linuxserver/duplicati | |
container_name: duplicati | |
environment: | |
- PUID=998 # this should match the ouput of `id -u admin` on the CLI | |
- PGID=100 # this should match the ouput of `id -g admin` on the CLI | |
- TZ=America/New_York | |
volumes: | |
- /srv/ssd/Config/Duplicati:/config #Duplicati Config Files, for consisency across re-deployments | |
- /srv/ssd/Config:/Config #WHATT to Backup | |
- /srv/ssd/Databases:/Databases #What TO Backup | |
- /srv/ssd/Files:/Files #What to BACKUP | |
- /home:/Home | |
ports: | |
- 8200:8200 # port for the web interface | |
restart: unless-stopped |
Backup Job 1/2 for backing up configs, databases, & home
mono /app/duplicati/Duplicati.CommandLine.exe backup "s3s://mcpi-backup/mcpi-jg3?s3-server-name=s3.amazonaws.com&s3-location-constraint=us-east-1&s3-storage-class=STANDARD&s3-client=aws&auth-username=ZZZZZZZZZZZZZZZZZZZZ" /Config/ /Databases/ /Home/ --backup-name=bu2s3 --dbpath=/config/WBJHVJDHIT.sqlite --encryption-module=aes --compression-module=zip --dblock-size=50mb --retention-policy="1W:1D,4W:1W,12M:1M" --exclude-files-attributes=hidden --disable-module=console-password-input
Backup Job 2/2 forr backing up Files
mono /app/duplicati/Duplicati.CommandLine.exe backup "s3s://mcpi-backup/mcpi-jg3/files?s3-server-name=s3.amazonaws.com&s3-location-constraint=us-east-1&s3-storage-class=STANDARD&s3-client=aws&auth-username=ZZZZZZZZZZZZZZZZZZZZ" /Files/ --backup-name=Files-to-S3 --dbpath=/config/TBQYYXHTME.sqlite --encryption-module=aes --compression-module=zip --dblock-size=500MB --retention-policy="1W:1D,4W:1W,12M:1M" --exclude-files-attributes=hidden --disable-module=console-password-input
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally based on https://gist.github.com/dnburgess/afee89678005424e0c68e8111d4be155
As explained in https://youtu.be/-NyzdAYMarw