From 93b7924bc6f499e6322e2780a484347c0988eb96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 2 Dec 2013 03:31:52 +0100 Subject: [PATCH] backups: hide unwanted "next volume requests" from tar --- core/backup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/backup.py b/core/backup.py index 4ccb541e..8d768c8f 100644 --- a/core/backup.py +++ b/core/backup.py @@ -418,7 +418,8 @@ def backup_do(base_backup_dir, files_to_backup, passphrase,\ # Tips: Popen(bufsize=0) # Pipe: tar-sparse | encryptor [| hmac] | tar | backup_target # Pipe: tar-sparse [| hmac] | tar | backup_target - tar_sparse = subprocess.Popen (tar_cmdline, stdin=subprocess.PIPE) + tar_sparse = subprocess.Popen (tar_cmdline, stdin=subprocess.PIPE, + stderr=(open(os.devnull, 'w') if not BACKUP_DEBUG else None)) # Wait for compressor (tar) process to finish or for any error of other # subprocesses