Skip to content

Commit

Permalink
fix: 0B when not encrypted and compressed
Browse files Browse the repository at this point in the history
  • Loading branch information
rsommerard authored Oct 6, 2022
1 parent 837a926 commit 2d84111
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dbbackup/management/commands/dbrestore.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ def _restore_backup(self):
)
input_file.close()
input_file = uncompressed_file
if not self.decrypt and not self.uncompress:
tmp_file = utils.create_spooled_temporary_file(fileobj=input_file)
input_file = tmp_file

self.logger.info("Restore tempfile created: %s", utils.handle_size(input_file))
if self.interactive:
Expand Down

0 comments on commit 2d84111

Please sign in to comment.