1
1
I'm trying to copy a lot of files from my NAS to my server, about 2TB.
I found that using a netcat
tar
pipe to copy the directories goes pretty fast, about 40mb/s. It seems to work faster than rsync
and ssh
, so I would prefer to keep using a netcat
tar
pipe.
Here's what I did:
On the receiving I do this:
nc -l 7000 | pv | tar -xpf -
And on the sending end I do this:
tar -cf - * | pv | nc otherhost 7000
Now I would like to stop the copying and continue later. I tried with a small directory to restart the process but it will also send the files that are already there.
Is there a way to prevent it from sending the files that already exist on the server?