diff --git a/CHANGES.rst b/CHANGES.rst index 668d55655..4bdbfea0c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,6 +5,8 @@ 6.0.1 (unreleased) ================== + - repozo: fix restoring on stdout. + - repozo: prevent an incorrect "option ignored" warning when running backup or verify. diff --git a/src/ZODB/scripts/repozo.py b/src/ZODB/scripts/repozo.py index 083a8c293..8dce5dc80 100755 --- a/src/ZODB/scripts/repozo.py +++ b/src/ZODB/scripts/repozo.py @@ -685,7 +685,7 @@ def do_recover(options): files_to_close = () if options.output is None: log('Recovering file to stdout') - outfp = sys.stdout + outfp = sys.stdout.buffer else: # Delete old ZODB before recovering backup as size of # old ZODB + full partial file may be superior to free disk space