fixed restore
This commit is contained in:
parent
b1bcb1ea80
commit
8182aa3a4a
1 changed files with 1 additions and 1 deletions
|
@ -10,4 +10,4 @@ psql -d template1 -h $POSTGRES_SERVICE -p $POSTGRES_PORT -U $(cat ${POSTGRES_USE
|
|||
# create folder from db backup
|
||||
restic -r $RESTIC_REPOSITORY restore $2 --target test-stdin-$2
|
||||
# read folder and restore db entries
|
||||
psql -d $(cat ${POSTGRES_DB_FILE}) -h $POSTGRES_SERVICE -p $POSTGRES_PORT -U $(cat ${POSTGRES_USER_FILE}) --no-password < test-stdin-$2
|
||||
psql -d $(cat ${POSTGRES_DB_FILE}) -h $POSTGRES_SERVICE -p $POSTGRES_PORT -U $(cat ${POSTGRES_USER_FILE}) --no-password < test-stdin-$2/stdin
|
||||
|
|
Loading…
Reference in a new issue