Skip to content

Commit

Permalink
Merge pull request #12 from someengineering/lloesche/suffix
Browse files Browse the repository at this point in the history
Add postgresql string into backup filename
  • Loading branch information
lloesche authored Jul 17, 2024
2 parents b5afa7c + 7531742 commit 1d52af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fixbackup/backup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def backup(args: Namespace, backup_directory: Path) -> Tuple[List[Path], bool]:
raise ValueError(f"Invalid database name: {db}")
else:
db = "all"
pg_backup_file = backup_directory / f"{environment}-{date_prefix}-mysql-{args.pg_host}-{db}.sql.gz"
pg_backup_file = backup_directory / f"{environment}-{date_prefix}-postgresql-{args.pg_host}-{db}.sql.gz"
if pg_backup(args, pg_backup_file):
result.append(pg_backup_file)
else:
Expand Down

0 comments on commit 1d52af9

Please sign in to comment.