#!/bin/sh #------------------------------------------------------------------------- # /var/install/bin/esniper-backup - backup |es|f| configuration # # Creation : 2010-05-20 dr_snuggles # Last update: $Id: esniper.sh 24159 2010-05-20 15:22:37Z dr_snuggles $ # # Copyright (c) 2010 the eisfair team, # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #------------------------------------------------------------------------ # define this package package='esniper' . /etc/config.d/$package # include eislib . /var/install/include/eislib archive='es-f_backup.tar.gz' clrhome cd ${ESNIPER_HTML_FOLDER} #if [ -f "config.php" ] #then mecho -info "Packing ${package} |es|f| config" #RUNDIR=`cat config.php | grep RUNDIR | cut -d " " -f 3 | cut -d "'" -f 2` if [ -d "local" ] then tar czf /usr/local/${package}/${archive} .htaccess local # else # tar czf /usr/local/${package}/${archive} config.* .htaccess fi # tar czf /usr/local/${package}/runDir.tar.gz ${RUNDIR} mecho -info "Done" #else # mecho -warn "No Configuration Files found - abort" #fi if [ "$1" == "waitkey" ] then anykey fi