Fast copy of files with tar
Today started with having to copy 100+ gigs of jpegs to a USB mounted drive. I ruled out two obvious choices right away.
– cp: too slow
– rsync: No point, this was a first time copy so I know everything needs to be copied.
The post shows how to use netcat and tar to send files server-to-server at an more than acceptable rate. The post reminded me of something similar I had done a while ago for disk-to-disk copies. It goes like this:
# tar cf – | ( cd ; tar xf – )
# cd /data/images
# tar cf – | ( cd /mnt/usb/images ; tar xf – )