I suppose I could compare the number of files in the source directory to the number of files in the target directory as cp progresses, or perhaps do it with folder size instead? I tried to find examples, but all bash progress bars seem to be written for copying single files. I want to copy a bunch of files (or a directory, if the former is not possible).
Join Stack Overflow to learn, share knowledge, and build your career.
|
|
To add another option, you can use It works like You can get it here |
|||
|
|
|
How about something like
It finds all the files in the current directory, pipes that through PV while giving PV an estimated size so the progress meter works and then piping that to a CP command with the --parents flag so the DEST path matches the SRC path. One problem I have yet to overcome is that if you issue this command
the destination path becomes /www/test/home/user/test/....FILES... and I am unsure how to tell the command to get rid of the '/home/user/test' part. That why I have to run it from inside the SRC directory. |
|||
|
|
|
My preferred option is Advanced Copy, as it uses the original
|
|||||||||
|
|
You can also use
Which will give you a progress bar and estimated time of completion. Very handy. |
|||||||||||||||||
|
|
A simple unix way is to go to the destination directory and do |
||||
|
|
|
To show a progress bar while doing a recursive copy of files & folders & subfolders (including links and file attributes), you can use
Here is the typical output while copying a large folder of files:
Notice that it shows just one progress bar for the whole operation, whereas if you want a single progress bar per file, you can use
|
|||||
|
|
There's a tool There's a ubuntu version in apt |
|||
|
|
|
You may have a look at the tool EDIT Here is the link to the sources: http://members.iinet.net.au/~lynx/vcp/ Manpage can be found here: http://linux.die.net/man/1/vcp Most distributions have a package for it. |
|||||||||||||||||
|
|
Here another solution: Use the tool You could invoke it like this:
You have to go the way over tar, and it will be inaccurate on small files. Also you must take care that the target directory exists. But it is a way. |
|||||
|
