Sometimes a tester needs to go to great lengths to reproduce a failure or compare behaviour … or just to have the slightest chance of understanding what the hell is going on .
Earlier today I had to copy a very big file (that contained the only known data set capable of reproducing the failure I’m investigating) from one server to another. I work behind a proxy server, and there’s also a second, independent proxy server and a firewall inbetween the two servers in question – as a result my initial attempts with SCP and RSYNC all ended in failure (due to connections being lost/sessions being dropped mid-transfer).
This is the command that got the job done:
nohup scp originalFile.zip user@host:path/destinationFile.zip &
More on the use of nohup and &: