Skip to content

Instantly share code, notes, and snippets.

@jg3
Last active June 1, 2021 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jg3/fb23d320661cd6382eb16495d3ab1bb7 to your computer and use it in GitHub Desktop.
Save jg3/fb23d320661cd6382eb16495d3ab1bb7 to your computer and use it in GitHub Desktop.
My Duplicati Stack
---
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
@jg3
Copy link
Author

jg3 commented May 31, 2021

@jg3
Copy link
Author

jg3 commented Jun 1, 2021

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 

@jg3
Copy link
Author

jg3 commented Jun 1, 2021

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