corz.org uses cookies to remember that you've seen this notice explaining that corz.org uses cookies, okay!
if [ -z $1 ]; then
echo
echo "Please supply a domain name on the command-line. e.g.."
echo
echo "$0 foobar.net"
echo
echo "corz-backup-lite will then use settings file: ~/.sftp/foobar.net"
echo
exit 1
fi
. ~/.sftp/$1
echo "lite backup for $host: "`date "+%Y.%m.%d-%H.%M"`.. >> $logfile
echo "lite backup for $host (lite version - no gzipping)"
if [ ! -e $backupdir/$host ]; then
mkdir -pv $backupdir/$host > /dev/null
fi
echo "copying (& logging) changed files to dev mirror.. [$backupdir]"
cp -d -f -p -r -u -vvv $homebsp;$backupdir/$host >> $logfile
now=`date "+%Y.%m.%d-%H.%M"`
echo >> $logfile
command -v fortune >/dev/null 2>&1 || { echo "lite backup for $host complete!"; exit 0; }
fortune
echo "lite backup complete at $now"
exit 0