From 935edba1dbccd7486b957ba4a3321e27b0937eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Podg=C3=B3rski?= Date: Mon, 24 May 2021 10:36:58 +0200 Subject: [PATCH] Fix backup to a file --- ctl/backup.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ctl/backup.go b/ctl/backup.go index 644b295f6..d193eb139 100644 --- a/ctl/backup.go +++ b/ctl/backup.go @@ -105,6 +105,7 @@ func (cmd *BackupCommand) Run(ctx context.Context) (err error) { return err } defer f.Close() + w = f } // Open a tar writer to the temporary file.