Skip to content

Commit

Permalink
Update pg_dumpall
Browse files Browse the repository at this point in the history
  • Loading branch information
enyachoke committed Nov 6, 2024
1 parent 311bd78 commit ec7d9a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/restic_compose_backup/containers_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down
4 changes: 2 additions & 2 deletions src/restore-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
# restic -r /restic_data restore latest --target /restored
#!/bin/bash
set -e
rcr restore > /proc/1/fd/1

0 comments on commit ec7d9a2

Please sign in to comment.