Add Files
This commit is contained in:
19
duplicati/docker-compose.yaml
Normal file
19
duplicati/docker-compose.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
duplicati:
|
||||
image: "linuxserver/duplicati:2.1.0"
|
||||
container_name: "duplicati"
|
||||
environment:
|
||||
- "PUID=${PUID}"
|
||||
- "PGID=${PGID}"
|
||||
- "TZ=${TZ}"
|
||||
volumes:
|
||||
- "${CONFIG_PATH}:/config"
|
||||
- "${SOURCE_PATH}:/source"
|
||||
- "${BACKUP_PATH}:/backups"
|
||||
- "${SCRIPTS_PATH}:/scripts"
|
||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||
- "/usr/bin/docker:/usr/bin/docker"
|
||||
ports:
|
||||
- "${PORT}:8200"
|
||||
restart: "unless-stopped"
|
||||
6
duplicati/readme.md
Normal file
6
duplicati/readme.md
Normal file
@@ -0,0 +1,6 @@
|
||||
## Duplicati Scripts:
|
||||
|
||||
Add scripts to backup jobs for stoping and starting docker containers
|
||||
|
||||
* run-script-before - /scripts/stop-containers.sh
|
||||
* run-script-after - /scripts/start-containers.sh
|
||||
10
duplicati/start-containers.sh
Normal file
10
duplicati/start-containers.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Start Database Containers and Dependant Containers
|
||||
docker start db_container db_container_2
|
||||
|
||||
# Sleep for 10 sec for Database Containers and Dependant Containers startup
|
||||
sleep 10
|
||||
|
||||
# Start Server Containers and Other Containers
|
||||
docker start container container_2
|
||||
10
duplicati/stop-containers.sh
Normal file
10
duplicati/stop-containers.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Stop Server Containers and Other Containers
|
||||
docker stop container container_2
|
||||
|
||||
# Sleep for 10 sec for Server Containers and Other Containers to stop
|
||||
sleep 10
|
||||
|
||||
# Stop Database Containers and Dependant Containers
|
||||
docker stop db_container db_container_2
|
||||
Reference in New Issue
Block a user