How to copy files in linux faster than cp
How to copy files in linux faster than cp
Tar pipe
- install the pv:
sudo apt install pv
tar cf - . | (cd /dst; tar xvf -)
[1]
|
tar cf - Mutation/Raw_VCF 2.04s user 21.44s system 18% cpu 2:06.94 total ( cd /dst; tar xvf -; ) 1.33s user 32.93s system 26% cpu 2:06.94 total
It only takes 2 minutes compared 12 minutes by cp
.
Another commands such as pv can help you too, to monitor the progress of a copy between two directories, for example:
|
gcp
Only works for git repository.
gcp -rv ~/Music/* /data/music/
[1:1]
How to copy files in linux faster than cp