submodule updates

This commit is contained in:
John Lancaster
2024-05-19 19:46:12 -05:00
parent d45ba97a8f
commit b22f4a436b
4 changed files with 19 additions and 22 deletions

18
scripts/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 "$@"