Checking success of automated scp

From: PullnOutHair (dirtytoyota_at_hotmail.com)
Date: 07/27/04


Date: 27 Jul 2004 13:49:11 -0700

I am utilizing scp with a public/private key pair to automatically
transfer files every night as a method of backing up my system. I get
this to work utilizing a bash script on my linux machine that runs
once a day, and performs a simple scp to a host server. Is there a
way that I can check for the success of the scp transfer inside the
bash script to see if I should retry?