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.