Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Bash by Timon_Crazy ( 16 years ago )
GNU nano 2.0.7                                                  File: /usr/local/bin/fc                                                                                                  Modified

#!/bin/sh

#Setting
BASEDIR="/var/www/happywitch/www"
OUTDIR="/var/backup/fs/"
ARHIVFILE="happywitch"
PREFIX="all_"
#------------------------------------------
SUFFIX="gz"
SUFFIX=.${SUFFIX}
#------------------------------------------
WHICH="`which which`"
DATEC="`${WHICH} date`"
DATE=`${DATEC} +%Y-%m-%d_%Hh%Mm`
#------------------------------------------
OUTFILE=${OUTDIR}${ARHIVFILE}-${DATE}.tar
ALLOUTFILE=${OUTDIR}${PREFIX}${ARHIVFILE}-${DATE}.tar
#-----------------------------------------
echo ${BASEDIR}
echo ${OUTFILE}
#----------------------------------------
#All arhiv
tar -cvf ${ALLOUTFILE} ${BASEDIR}
gzip gzip -9 --suffix=${SUFFIX} ${ALLOUTFILE}

#No img produkt
tar -cvf ${OUTFILE} ${BASEDIR} --exclude=/components/com_virtuemart/shop_image/product/ --exclude=/cache/ --exclude=/components/com_virtuemart/shop_image/product/resized/
gzip gzip -9 --suffix=${SUFFIX} ${OUTFILE}

 

Revise this Paste

Your Name: Code Language: