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
pv;-) – thecarpy Feb 10 '18 at 13:46rsync -P /source/ /destination/, where -P option is to show the progress of the rsync copy. – k.Cyborg Feb 10 '18 at 14:08pvdoesn't come as defualt installed in my unix system, solutions should not require an install, as no an easyapt-get installis possible. @k.Cyborg, thanks,rsync -Plooks awesome. – Evhz Feb 19 '18 at 13:07