zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Progress bar for DD

January 21, 2011 by Igor Drobot Leave a Comment


I am still searching for a perfect progress bar for DD, I know a dirty trick[*1] – put DD to background an sending “USR1” signal to bring it to show a progress – I hate this solution!

This one is not so dirty, but you have only the done progress and transfer speed.

1
2
dd if=/opt/wap/Backup.tib | pv | ssh -c arcfour id@tower "dd of=/home/id/Backup.tib"
1.94GB 0:01:15 [30.1MB/s] [<=>

dd if=/opt/wap/Backup.tib | pv | ssh -c arcfour id@tower "dd of=/home/id/Backup.tib" 1.94GB 0:01:15 [30.1MB/s] [<=>

Dirty trick:
Only local way!

1
2
dd if=/opt/wap/Backup.tib of=file.img bs=4KB& pid=$!
while true; do kill -USR1 $pid && sleep 1 && clear; done

dd if=/opt/wap/Backup.tib of=file.img bs=4KB& pid=$! while true; do kill -USR1 $pid && sleep 1 && clear; done

Filed Under: Bash, Debian, Linux Tagged With: dd, progress bar, transfer

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok