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

Progress bar #47

Open
GrabbenD opened this issue Sep 16, 2022 · 4 comments
Open

Progress bar #47

GrabbenD opened this issue Sep 16, 2022 · 4 comments

Comments

@GrabbenD
Copy link

This tool is a lifesaver but with larger system installations it can take quite a while to finish and a progress bar would be very useful. For instance, when using the dd tool this can be accomplished with fsync:

dd if=/dev/nvme0n1p3 bs=4M status=progress conv=fsync | bzip2 > /mnt/nvme1n1/backup.bz2

Are there actually any existing methods to view the progress of mkstage4?

@TheChymera
Copy link
Owner

I agree that this could be useful, though I'm not entirely sure how to do this in a way that supports the various compression algorithms. If you have a suggestion I'd be happy to review it.

@GrabbenD
Copy link
Author

Good point @TheChymera

I've switched to NixOS since Gentoo was consuming too much of my free time. Nix ecosystem also offers incredibly fast rollbacks and OS configuration switching

@antonellocaroli
Copy link

@TheChymera
it would probably suffice to add to

TAR_OPTIONS=(
	-cpP
	--ignore-failed-read
	"--xattrs-include=*.*"
	--numeric-owner
        --checkpoint=.500
	"--use-compress-prog=${COMP_OPTIONS[*]}"
	)

@TheChymera
Copy link
Owner

TheChymera commented May 24, 2023

@antonellocaroli that just prints a period every 0.5 seconds, not really a progress bar since it's not relative to anything. Not sure if tar can even correctly guess how far into the operation it is.

I guess the --checkpoint-action parameter might be usable to contrive something, but this and other approaches I could track down, seem to gobble stdout, which is quite vital to notify you of any files that might have changed while reading...

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

No branches or pull requests

3 participants