Sorry, I'm not sure I understand what you mean by
"I take it there are two processes here -- a local one which copies the files over, and another on the server, which runs unseen, and extracts the .gz files into logs"
My crontab runs:
20 3 * * 1,2,3,4,5,6 /data05/oradata/dpdump/cpFromDB.sh > /data05/oradata/dpdump/cpFromDB.log 2>&1
And here is my script:
cpFromDB.sh
scp -C
root@xxx.xx.xxx.3:/data05/oradata/dpdump/*.gz /data05/oradata/dpdump/.
ssh -l root xxx.xx.xxx.3 rm -f /data05/oradata/dpdump/*.gz /data05/oradata/dpdump/db*.log
So, scp is the one that "a local one which copies the files over", but where is the other one that "on the server, which runs unseen, and extracts the .gz files into logs"? Is it ssh line?