dda-backup/infrastrucure/docker/image/resources/init.sh

16 lines
331 B
Bash
Raw Normal View History

2020-12-04 17:10:24 +00:00
#!/bin/bash
2020-12-12 15:02:24 +00:00
function main() {
file_env AWS_ACCESS_KEY_ID
file_env AWS_SECRET_ACCESS_KEY
file_env RESTIC_PASSWORD_FILE
2020-12-13 11:49:12 +00:00
restic -r ${RESTIC_REPOSITORY}/pg-role -v init
restic -r ${RESTIC_REPOSITORY}/pg-database -v init
restic -r ${RESTIC_REPOSITORY}/files -v init
2020-12-12 15:02:24 +00:00
}
2020-12-12 16:30:18 +00:00
source /usr/local/lib/functions.sh
2020-12-12 15:02:24 +00:00
main