diff --git a/src/restic_compose_backup/containers_db.py b/src/restic_compose_backup/containers_db.py index 79ed83b..970dae7 100755 --- a/src/restic_compose_backup/containers_db.py +++ b/src/restic_compose_backup/containers_db.py @@ -208,7 +208,7 @@ def dump_command_str(self) -> str: """list: create a dump command restic and use to send data through stdin""" # NOTE: Backs up a single database from POSTGRES_DB env var creds = self.get_credentials() - return f"pg_dumpall --create --host={creds['host']} --port={creds['port']} --username={creds['username']} > {self.backup_destination_path()}" + return f"pg_dumpall --host={creds['host']} --port={creds['port']} --username={creds['username']} > {self.backup_destination_path()}" def restore_command_str(self) -> str: """list: create a restore command to restore database dump from restic""" diff --git a/src/restore-entrypoint.sh b/src/restore-entrypoint.sh index e6dfd41..3828fbb 100755 --- a/src/restore-entrypoint.sh +++ b/src/restore-entrypoint.sh @@ -1,3 +1,3 @@ -#!/bin/sh -# restic -r /restic_data restore latest --target /restored +#!/bin/bash +set -e rcr restore > /proc/1/fd/1 \ No newline at end of file