even more lighter backup procedure

This commit is contained in:
Serghey Rodin 2013-09-25 00:25:03 +03:00
commit 3fd8918e31

View file

@ -306,19 +306,13 @@ fi
# Backup nginx
service nginx stop > /dev/null 2>&1
if [ -e '/etc/nginx/nginx.conf' ]; then
cp /etc/nginx/* $vst_backups/nginx/
fi
if [ -f '/etc/nginx/conf.d' ]; then
cp -r /etc/nginx/conf.d $vst_backups/nginx/
cp -r /etc/nginx/* $vst_backups/nginx/
fi
# Backup httpd
service httpd stop > /dev/null 2>&1
if [ -e '/etc/httpd/conf/httpd.conf' ]; then
cp /etc/httpd/conf/httpd.conf $vst_backups/httpd/
fi
if [ -e '/etc/httpd/conf.d' ]; then
cp -r /etc/httpd/conf.d $vst_backups/httpd/
cp -r /etc/httpd/* $vst_backups/httpd/
fi
# Backup bind