7
2
Is there any good tool in GNU/Linux that copy files like cp
, but also shows progress and limits speed (and changes limit without interruption) like pv
?
Prototype:
find source_directory | cpio -H newc -o | pv -s `du -bs source_directory/ | awk '{print $1}'` | (cd /destination/directory && cpio -di)
Also rsync -aP source_directory /destionation/directory/
, but this shows progress bars individually and can't change rate after started.
Or may be I should just write a wrapper for pv/cpio? Done.
+1 for you! I'm afraid I can't get around to testing it but it look pretty promising! Nice work! – BloodPhilia – 2010-06-22T20:39:29.237
What is
– Stefan Lasiewski – 2010-06-22T21:47:41.067pv
? Is that Pipe Viewer? (It's not installed on Ubuntu 10.04 by default, so I don't have it).1@Stefan Lasiewski Yes, it is.
apt-get install pv
– Vi. – 2010-06-22T22:03:05.6871Note for users: the script fails on large (>2GB) files. – Vi. – 2012-02-26T01:44:04.430