Menu

One backup CLI, three callers: where stdout, stderr and the snapshot name end up
πŸ“°

One backup CLI, three callers: where stdout, stderr and the snapshot name end up

DEV Community: cicdΒ·SuperLedeΒ·about 18 hours ago
#NRlvaVCg
#devtocicd#devto#dev#json#backup
Long article (1009 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Run backupdrill backup > backup.json in a terminal and you still see the progress lines scroll by, while the JSON result goes into the file. Put the same command in an Octopus Deploy step and those progress lines get logged as errors unless you redirect them. Hand it to a coding agent and whatever the agent reads, JSON or progress lines, becomes part of its context.

backupdrill is an open-source CLI that backs up a Supabase Postgres database to an S3-compatible bucket and restores it into a throwaway container to check it. In a terminal recording of a Postgres backup and restore drill , progress stays on screen while stdout goes to a JSON file. The script inside the BackupDrill step template for Octopus Deploy states the rule, "The CLI prints progress on stderr and a JSON result on stdout", and reads the snapshot name out of that JSON. The backupdrill plugin page in the Hermes Marketplace says what your model provider sees when an agent reads the output.

1.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.