h1. IBackup for linux h2. installing and configuring IBackup perl scripts
cd /usr/local/sbin wget http://evs.ibackup.com/download/download-for-linux/IBackup_for_Linux.zip unzip IBackup_for_Linux.zip cd IBackup_for_Linux chmod a+x *.pl ./Account_Settings.plEnter your * username * password * key * backup location (defaults to hostname) * restore location (they recommend using @/home/@) * restore from location (defaults to hostname) * email ID * retain logs? YES !https://www.ibackup.com/source/images/ibackup-account-settings-new.jpg! It asks if you want to log in, say yes. h2. setting up backupninja jobs
cd /etc/backup.dcreate 56-iBackup.sh with contents:
#!/bin/sh cd /usr/local/sbin/IBackup_for_Linux/ OUTPUT=$(( /usr/local/sbin/IBackup_for_Linux/Backup_Script.pl ) 2>&1) if [ $? -ne 0 ] then warning $OUTPUT ficreate 57-iBackup_test.sh remember to change the path to include your username
#!/bin/sh OUTPUT=$(( ## YOU MUST CHANGE THIS TO REFLECT THE LOCAL PATH path="/usr/local/sbin/IBackup_for_Linux/palantetech/LOGS" # declare variables for checking the timestamp against today=`date "+%a %b %e"` yesterday=`date -d "yesterday" "+%a %b %e"` cnt=`ls -l $path |grep "$today\|$yesterday"| wc -l` # find if there are errors errorcnt=`find $path -name **"$yesterday"** -exec cat {} \; | grep "Total files failed to backup" | cut -d ' ' -f 7` errors=`find $path -name **"$yesterday"** -exec cat {} \; | grep -A 6 "ADDITIONAL INFORMATION"` # for testing #echo -e "$today \n $yesterday \n $cnt \n $errorcnt \n $errors" if [ $cnt -eq 0 ] ; then echo "CRITICAL - A backup did not run on $yesterday!" exit 2 fi if [ $errorcnt -ne 0 ] ; then echo "CRITICAL - Errors in backup!\n$errors" exit 2 fi echo -e "OK - Backup ran $yesterday with no errors" exit 0 ) 2>&1) if [ $? -ne 0 ] then warning $OUTPUT fiDeveloped from https://www.ibackup.com/online-backup-linux/readme.htm https://hq.palantetech.coop/issues/25142