Merge branch 'master' of github.com:DomainDrivenArchitecture/dda-backup

This commit is contained in:
jem 2020-11-27 09:24:38 +01:00
commit 94706f9054

View file

@ -1,4 +1,5 @@
# Restore Nextcloud Filesystem # Restore Nextcloud Filesystem
# Reads restore snapshot_ID from first CLI Argument # Reads restore snapshot_ID from first CLI Argument
restic -r $RESTIC_REPOSITORY restore $1 --target / restic -r $RESTIC_REPOSITORY restore $1 --target /
@ -9,4 +10,4 @@ psql -d template1 -h $POSTGRES_SERVICE -p $POSTGRES_PORT -U $(cat ${POSTGRES_USE
# create folder from db backup # create folder from db backup
restic -r $RESTIC_REPOSITORY restore $2 --target test-stdin-$2 restic -r $RESTIC_REPOSITORY restore $2 --target test-stdin-$2
# read folder and restore db entries # 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