Hi Dameon,
Thanks for your feedback. Please find below the script I use to do the backup of the database. Also, I include the clish command that schedules the job.
Regards,
Alain
#!/bin/bash -f
source /opt/CPshrd-R77/tmp/.CPprofile.sh
#VARIABLES
DATE=`date +%Y_%m_%d`
FILE="config_checkpoint_"$HOSTNAME"_"$DATE
FOLDER=$FWDIR/bin/upgrade_tools/
echo ******Process Migrate Export `date +'%d.%m.%y %H:%M:%S'` STARTED******
echo Migrate export $FILE started
#UPGRADE_EXPORT
echo File will be $FOLDER$FILE.tgz
$FWDIR/bin/upgrade_tools/migrate export -n $FOLDER/$FILE
echo Migrate export $FILE finished
#Waiting for migrate export to finish
echo waiting 1 minute
sleep 1m
echo waiting finished
echo FTP $FILE started
#FTP
cd $FOLDER
HOST=<FTP_Server_IP>
USER=<FTP_username>
PASSWD=<FTP_Password>
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
bin
cd CheckPoint/BackupDB
put $FILE.tgz
quit
END_SCRIPT
echo FTP $FILE finished
#REMOVE
echo Remove of $FOLDER/$FILE.tgz started
rm $FWDIR/bin/upgrade_tools/$FILE.tgz
echo Remove of $FOLDER/$FILE.tgz finished
echo ****** Process Migrate Export `date +'%d.%m.%y %H:%M:%S'` FINISHED******
exit