initial commit

This commit is contained in:
John Lancaster
2024-05-20 18:45:02 -05:00
commit 330ae34cc0
4 changed files with 68 additions and 0 deletions

18
restic_command.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
set -e
SCRIPT_DIR=$(readlink -f $(dirname "${BASH_SOURCE[0]}"))
DATA_DIR=$SCRIPT_DIR/data
ENV_FILE=$SCRIPT_DIR/.env
source $ENV_FILE
docker run -it --rm \
--hostname $HOSTNAME \
--env-file $ENV_FILE \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \
-v $DATA_DIR:/data \
-v $RESTIC_REPOSITORY:$RESTIC_REPOSITORY \
restic/restic:latest "$@"