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 } # ***