Jump to content

copy with pv - to see the progress of the process


Recommended Posts

hello


want to do a recursive copy of my home drive to a external drive

and i want to use pv - to have an overview on the progress.

why does this fail

    pv -p -e -r -b r martin/* > /run/media/martin/HDDRIVE2GO/medion/medion2017/

    
   

this command fails -

questions :
- do i use too much parameter within the above mentioned pv-command?
- besides this: how would i write this command with rsync
- would i have an overview - in rsync too:

there is such an option: showing-total-progress-in-rsync-is-it-possible


   how would i write this command with rsync
   
   #> ./rsync -a --info=progress2 /usr .
305,002,533 80% 65.69MB/s 0:00:01 xfr#1653, ir-chk=1593/3594)
 

Edited by dil_bert

pv can only act like cat, and you can't use that to copy a directory structure either.

 

How about doing a cp -v to see each file being copied? Or maybe... uh, tar c to stdout, piped to pv, piped to tar x from stdin? But doing this might even slow down the copy.

 

As for rsync, -v and/or --progress should work. No pv.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.