I just ran a test, I used cron to SCP a file twice - with and without the -C switch. Both runs were ok, and the file sizes are equal. However, this test file was much smaller than the real one. The real one was 15GB, while the test file was only 30MB.
So, could it be that the size of a file is causing a problem?
I might be able to run the large file only over the weekend, other wise it is getting in a way of our backup process.
---------- Post updated at 11:58 AM ---------- Previous update was at 11:54 AM ----------
Quote:
Originally Posted by
methyl
(Only asked about root in case there was a different ulimit).
Have you tried putting a say sleep 30 between the scp and the ssh ? I'm serious (the second command deletes the source file and the slave process could still be running).
I agree that the compression is pointless on a compressed file. Also that rsync is preferred if both computers support the command.
------------
I will put sleep in the code. It will run tonight, and result I will see Monday morning. It could be a very good catch, deletes before the previous process finishes.