Hi All,
Here is another simple qs. I am using rsync to tranfers a backup file to another Solaris 8 box. How would I check to see if the file transfered successfully.
##SSH the file.
rsync -a -e ssh /export/home/db2inst1/backupCampmor sample@anotherbox: /db2_backup
if [ <file transferred successfully> ]
then
echo "CAMPMOR DATABASE BACKUP FAILED" >> /db2_backup/timer.txt
print "CAMPMOR DATABASE BACK UP FAILED"
exit 1
fi
TIA,
T
Here is another simple qs. I am using rsync to tranfers a backup file to another Solaris 8 box. How would I check to see if the file transfered successfully.
##SSH the file.
rsync -a -e ssh /export/home/db2inst1/backupCampmor sample@anotherbox: /db2_backup
if [ <file transferred successfully> ]
then
echo "CAMPMOR DATABASE BACKUP FAILED" >> /db2_backup/timer.txt
print "CAMPMOR DATABASE BACK UP FAILED"
exit 1
fi
TIA,
T