Is it a simple way to track the completion of a large cp -r command?
To get something like:
copying 10%
...
copying 20%
Maybe using a pipe to another command?
cp -rvv orig dest | show_as_percent
update
I've checked this question, but when I try to copy folder:
rsync -P source dest
or
rsync --progress source dest
or
rsync --info=progress2 source dest
it says: skipping directory source
After checking this resource, I see the rsync command working is:
rsync -r --progress source dest, great,
but the output comes as:
source/
source/a.c
4,114 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=3/5)
source/b.c
5,480 100% 5.23MB/s 0:00:00 (xfr#2, to-chk=2/5)
source/c.c
4,615 100% 4.40MB/s 0:00:00 (xfr#3, to-chk=1/5)
Is there an easy way to have the overall percentage (and not per file percentage) and a more simple output which can be easily parsed using awk for example?
Looking for a way of getting in console a nice integer representing a completion percentage.
Any suggestion in the shape of:
cp -rvv orig dest | show_as_percent