This commit is contained in:
caylakpenguen 2016-04-29 22:47:10 +03:00
parent 41cfbf8afb
commit 54ef4d56c6

View File

@ -8,23 +8,23 @@ DATADIR="/root/sistem"
DIZIN="$DATADIR/$(date +%F)" DIZIN="$DATADIR/$(date +%F)"
yedekal(){ yedekal(){
mkdir -p $DIZIN mkdir -p $DIZIN
cd $DIZIN cd $DIZIN
cp -r /etc/bind . cp -r /etc/bind .
cp -r /etc/nginx . cp -r /etc/nginx .
cp -r /etc/supervisor . cp -r /etc/supervisor .
cp -a /etc/aliases* . cp -a /etc/aliases* .
cp -ar /etc/postfix . cp -ar /etc/postfix .
cp -ar /etc/opendkim* . cp -ar /etc/opendkim* .
cp -ar /var/log/apt apt-log cp -ar /var/log/apt apt-log
cp -ar /var/log/mail.* . cp -ar /var/log/mail.* .
date > $(date +%F-%H-%M).txt date > $(date +%F-%H-%M).txt
cd $DATADIR cd $DATADIR
tar -zcf $DIZIN.tar.gz $DIZIN tar -zcf $DIZIN.tar.gz $DIZIN
} }
yedekle (){ yedekle (){
yedekal yedekal
} }
# *** # ***