I'm copying about 300K files (about 30MB for each file) from one directory to another. I used the following command to preserve the folder structure
find . -name '*.msg' -exec cp -p --parents \{\} /destinated_folder \;
I'm facing this error message
packet_write_wait: Connection to aa.bbb.ccc.dd port ee: Broken pipe`
The script is running but somehow it stopped halfway. I have also seen similar discussion using rsync
in here.
I wonder what might be the solution? I'm using Ubuntu with 6vCPUs and 32GB memory.
rsync
? It seems to do a good job picking up from partial-runs. – DopeGhoti Jul 01 '20 at 18:35