# settings for corz.org sftp scripts echo "Importing settings from ~/.sftp/corz.org.." # global prefs.. host="corz.org" user="corfoo" home="/home/sites/$host/httpdocs" now=`date "+%Y.%m.%d-%H.%M"` # prefs for backup scripts.. # the file who's content we will later convert into ftp commands logfile="/home/corz_mirror.log" # this script will recreate (mirror) inside here.. backupdir="/bax/mirrors" # a gzip of the whole lot will go here.. arcroot="/bax/www" # finally, an offline storage facility to dump the backup to offline_storage="/mnt/Stud/BackUp/Sites/$host" # "backup" folder inside offline storage.. ol_daily="$offline_storage/daily_backup" # comment archiving prefs.. comm_tmp="$arcroot/tmp" commentstore="$arcroot/$host" ol_comments="$offline_storage/comments" #db archiving prefs... db_tmp="$arcroot/tmp" dbstore="$arcroot/$host" ol_db="$offline_storage/db" # log backup prefs.. logdir="inc/log" logarc="_arc" logstore="$arcroot/$host/log" ol_logs="$offline_storage/logs" # we will parse its entries for various comment functions.. inifile="$home/inc/comments.ini" # databases declare -a dbfiles=( "$home/public/machine/inc/data/.ht_downloads" "$home/corz/ampsig/data/*" "$home/inc/anti-hammer/lists/*" "$home/inc/db/*" ) ## let the user know their variables.. #echo "Variables:" #echo #echo " host = $host" #echo " user = $user" #echo " home = $home" #echo " now = $now" #echo " logfile = $logfile" #echo " folder = $folder" #echo " remote = $remote" #echo " backupdir = $backupdir" #echo " arcroot = $arcroot" #echo " offline_storage = $offline_storage" #echo " comm_tmp = $comm_tmp" #echo " commentstore = $commentstore" #echo " logdir = $logdir" #echo " logarc = $logarc" #echo " logstore = $logstore" #echo