[Enhancement] Progress Bar #106

Closed
opened 2018-11-06 10:28:33 +00:00 by pwnyprod · 5 comments

How about a progressbar or something to see that is any progress there with the update.

Also okay is an estimation time or something or a rolling Bar or something with Filename next to it with echo -n

How about a progressbar or something to see that is any progress there with the update. Also okay is an estimation time or something or a rolling Bar or something with Filename next to it with echo -n
Owner

That would be pretty cool. Are you in particular thinking about a progress bar when creating a backup?

It looks like Borg backup already has an existing --progress flag to borg create, so it might just be a question of passing that through from borgmatic. The way I could imagine that working is to add an optional --progress to the borgmatic command-line that basically triggers the built-in Borg progress bar.

That would be pretty cool. Are you in particular thinking about a progress bar when creating a backup? It looks like Borg backup already has an existing `--progress` flag to `borg create`, so it might just be a question of passing that through from borgmatic. The way I could imagine that working is to add an optional `--progress` to the borgmatic command-line that basically triggers the built-in Borg progress bar.
Owner

Based on some discussion on #108, it sounds like borg create --progress doesn't actually include a progress bar as I originally assumed! So a pass-through flag wouldn't be sufficient here.

In any case, it would be helpful if you could describe what you'd like a progress bar for (creating backups, etc). Thanks.

Based on some discussion on #108, it sounds like `borg create --progress` doesn't actually include a progress bar as I originally assumed! So a pass-through flag wouldn't be sufficient here. In any case, it would be helpful if you could describe what you'd like a progress bar for (creating backups, etc). Thanks.
Owner

Okay, having played with borg create --progress a bit.. It's not a progress bar, but it does provide updating per-file rolling progress.. Here's an example:

351.11 MB O 197.07 MB C 66.16 MB D 2171 N home/.../file.sqlite                         

And those numbers update until the file backup is complete. This is just a built-in Borg feature. Here are the docs on it:

The --progress option shows (from left to right) Original, Compressed and Deduplicated (O, C and D, respectively), then the Number of files (N) processed so far, followed by the currently processed path.

Let me know if that works for your needs or not.

Okay, having played with `borg create --progress` a bit.. It's not a progress *bar*, but it does provide updating per-file rolling progress.. Here's an example: ``` 351.11 MB O 197.07 MB C 66.16 MB D 2171 N home/.../file.sqlite ``` And those numbers update until the file backup is complete. This is just a built-in Borg feature. Here are the [docs](https://borgbackup.readthedocs.io/en/stable/usage/create.html#description) on it: > The --progress option shows (from left to right) Original, Compressed and Deduplicated (O, C and D, respectively), then the Number of files (N) processed so far, followed by the currently processed path. Let me know if that works for your needs or not.
Author

Hey, thanks for your reply.

i overthinked it and that will be fine. To build a real Progress bar in the natural way a bar works you need to count all backed files before backup. That might be unefficient for the Tool itself.

So parse the param through will be the beste way.

Hey, thanks for your reply. i overthinked it and that will be fine. To build a real Progress bar in the natural way a bar works you need to count all backed files before backup. That might be unefficient for the Tool itself. So parse the param through will be the beste way.
Owner

Cool. In that case, I'll close this ticket as a duplicate in favor of #108. (Even though this ticket was technically filed first!) Thanks for filing the enhancement, and please continue to follow progress (heh) on #108.

Cool. In that case, I'll close this ticket as a duplicate in favor of #108. (Even though this ticket was technically filed first!) Thanks for filing the enhancement, and please continue to follow progress (heh) on #108.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#106
No description provided.