Add wrapper script around restic backup program
This commit is contained in:
parent
2ece62f3e8
commit
2c90886299
14
bin/bin/restic.sh
Executable file
14
bin/bin/restic.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if ! command -v restic &> /dev/null
|
||||
then
|
||||
echo "restic not installed"
|
||||
exit
|
||||
fi
|
||||
|
||||
export AWS_ACCESS_KEY_ID="$(pass jdormit-infra-spaces-access-id)"
|
||||
export AWS_SECRET_ACCESS_KEY="$(pass jdormit-infra-spaces-secret-key)"
|
||||
export RESTIC_PASSWORD="$(pass restic-jdormit-backup-spaces)"
|
||||
export RESTIC_REPOSITORY="s3:nyc3.digitaloceanspaces.com/jdormit-backup"
|
||||
|
||||
restic "$@"
|
Loading…
Reference in New Issue
Block a user