From 54ef4d56c638c8ca4a4baa36e81be386899838b2 Mon Sep 17 00:00:00 2001 From: caylakpenguen Date: Fri, 29 Apr 2016 22:47:10 +0300 Subject: [PATCH] mini fix --- yedekle-sistem.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/yedekle-sistem.sh b/yedekle-sistem.sh index aafdc41..02f19ab 100755 --- a/yedekle-sistem.sh +++ b/yedekle-sistem.sh @@ -8,23 +8,23 @@ DATADIR="/root/sistem" DIZIN="$DATADIR/$(date +%F)" yedekal(){ -mkdir -p $DIZIN -cd $DIZIN -cp -r /etc/bind . -cp -r /etc/nginx . -cp -r /etc/supervisor . -cp -a /etc/aliases* . -cp -ar /etc/postfix . -cp -ar /etc/opendkim* . -cp -ar /var/log/apt apt-log -cp -ar /var/log/mail.* . -date > $(date +%F-%H-%M).txt -cd $DATADIR -tar -zcf $DIZIN.tar.gz $DIZIN + mkdir -p $DIZIN + cd $DIZIN + cp -r /etc/bind . + cp -r /etc/nginx . + cp -r /etc/supervisor . + cp -a /etc/aliases* . + cp -ar /etc/postfix . + cp -ar /etc/opendkim* . + cp -ar /var/log/apt apt-log + cp -ar /var/log/mail.* . + date > $(date +%F-%H-%M).txt + cd $DATADIR + tar -zcf $DIZIN.tar.gz $DIZIN } yedekle (){ -yedekal + yedekal } # ***