Skip to content

feat(progress): add JSON backup progress output#1751

Open
lookfirst wants to merge 1 commit intorustic-rs:mainfrom
lookfirst:json-progress-backup
Open

feat(progress): add JSON backup progress output#1751
lookfirst wants to merge 1 commit intorustic-rs:mainfrom
lookfirst:json-progress-backup

Conversation

@lookfirst
Copy link
Copy Markdown

Introduce a global --json-progress option and RUSTIC_JSON_PROGRESS environment variable that selects a machine-readable progress backend for byte-oriented backup progress.

Emit newline-delimited status objects with elapsed time, remaining time, percent complete, total bytes, and completed bytes, then write a final backup summary object after snapshot creation.

Document the new configuration option and update config/show-config snapshots for the added default.

This was AI supervised as I'm not a rust expert. I tested it and it seemed to work well. It aligns this project more closely with restic in terms of functionality. The changes are pretty minimal, but I'll understand if you don't want this PR or if you want me to iterate on it more.

Introduce a global --json-progress option and RUSTIC_JSON_PROGRESS environment variable that selects a machine-readable progress backend for byte-oriented backup progress.

Emit newline-delimited status objects with elapsed time, remaining time, percent complete, total bytes, and completed bytes, then write a final backup summary object after snapshot creation.

Document the new configuration option and update config/show-config snapshots for the added default.
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 this pull request may close these issues.

1 participant