I have been dumping postgresql databases into restic using stdin.
When I attempt to restore these backups, I am using the restic dump command to send the dump file contents to standard output and piping it to pg_restore as follows:
pg_restore is complaining about the extraneous output generated by resticprofile. I initially reported this issue, but probably not as clearly as shown above.
I propose, when using the restic dump command with resticprofile, either logging is suppressed on standard output entirely, or is instead written to standard error.
The new run hooks don't really help here when you want to send the dump output to a variety of different commands. Or in my case, I don't want to accidentally pipe the output directly to a db restore and wipe anything out.
Since handling stdout properly still needs more time, I agree that we should handle the dump command special in that we don't send anything to stdout other than the command output.
I have been dumping postgresql databases into restic using stdin.
When I attempt to restore these backups, I am using the restic dump command to send the dump file contents to standard output and piping it to pg_restore as follows:
But the beginning of the stanard output stream includes the following 2 lines generated by resticprofile ahead of the actual dump file contents:
pg_restore is complaining about the extraneous output generated by resticprofile. I initially reported this issue, but probably not as clearly as shown above.
I propose, when using the restic dump command with resticprofile, either logging is suppressed on standard output entirely, or is instead written to standard error.
The new run hooks don't really help here when you want to send the dump output to a variety of different commands. Or in my case, I don't want to accidentally pipe the output directly to a db restore and wipe anything out.
What do you think?