rename again

This commit is contained in:
2015-06-29 11:58:16 +03:00
parent 9eccee96dc
commit 10d70318d6

View File

@@ -1,24 +0,0 @@
#!/bin/bash
# echo "0 11 * * * root /root/scripts/server/cfg-backup.sh" > /etc/cron.d/cfg-backup
BAKDIR=/root/backup/cfg
# List here all files/dirs which should be backupped
BAKS="/etc/apache2/sites-available \
/etc/samba/smb.conf \
/etc/apt-cacher-ng/acng.conf \
/etc/dnsmasq.conf \
/etc/ssh/sshd_config \
/etc/NetworkManager/system-connections/eth0 \
/etc/hosts \
/etc/apache2/apache2.conf \
"
if [ ! -e $BAKDIR ]; then
mkdir -p $BAKDIR
fi
DATE=$(date +%y%m%d-%H%M)
tar cfvz $BAKDIR/"$DATE".tgz $BAKS