Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backups] "Selected the most recent backup" is print to stdout when using "--output -" #645

Closed
Kocal opened this issue Apr 12, 2021 · 2 comments · Fixed by #646
Closed
Assignees

Comments

@Kocal
Copy link

Kocal commented Apr 12, 2021

Hi!

I'm using Scalingo 1.20.0, and I have an issue while trying to download the most recent backup and output it to stdout, this way I can easily uncompress it with tar and import SQL statements to pg_restore.

You can reproduce by running:

scalingo -a <project_name> --region osc-fr1 --addon <addon_id> backups-download --output - > database
head database

You can see Selected the most recent backup at the first line:
image

I'm not familiar with the source code or with Go, but it looks like this message is written before writers have been configured.

As a current workaround, I won't use --output - but the classical way (--output my_file.tar.gz, tar xzvf my_file.tar.gz) .

Thanks! :)

@Soulou
Copy link
Member

Soulou commented Apr 12, 2021

It seems a really legit inquiry, it will be done :-)

@Kocal
Copy link
Author

Kocal commented Apr 13, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants