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

16 lines
343 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
restic -r ${RESTIC_REPOSITORY}/db --verbose init
2020-12-12 20:01:33 +00:00
restic -r ${RESTIC_REPOSITORY}/db-role --verbose init
2020-12-12 15:02:24 +00:00
restic -r ${RESTIC_REPOSITORY}/files --verbose init
}
2020-12-12 16:30:18 +00:00
source /usr/local/lib/functions.sh
2020-12-12 15:02:24 +00:00
main