[U] tar progress

This commit is contained in:
Azalea (on HyDEV-Daisy)
2022-10-01 18:28:56 -04:00
parent 3810da00f3
commit 839f372f4a
+2 -1
View File
@@ -76,8 +76,9 @@ alias old-update-ssh-keys="curl -L https://github.com/Hykilpikonna.keys > ~/.ssh
compress-zst() {
cores=$(grep -c ^processor /proc/cpuinfo)
echo "Starting ZSTD compression with $cores cores"
tar -I 'zstd -T36 -15' --checkpoint=.1024 --totals -c -f "$@"
tar -I 'zstd -T36 -15' --checkpoint=.1024 --totals --totals=SIGUSR1 -c -f "$@"
}
alias tar-kill-progress="watch -n 60 killall tar -SIGUSR1"
# Unix permissions reset (Dangerous! This will make executable files no longer executable)
reset-permissions-dangerous() {