initial commit of already existing scripts

This commit is contained in:
2015-06-12 11:42:25 +03:00
commit 92bf42faec
7 changed files with 1017 additions and 0 deletions

20
server/backup.sh Executable file
View File

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