mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-19 04:50:46 -07:00
lighter backup procedure
This commit is contained in:
parent
217c981aae
commit
2280bd5be9
1 changed files with 6 additions and 14 deletions
|
@ -306,16 +306,10 @@ fi
|
||||||
# Backup nginx
|
# Backup nginx
|
||||||
service nginx stop > /dev/null 2>&1
|
service nginx stop > /dev/null 2>&1
|
||||||
if [ -e '/etc/nginx/nginx.conf' ]; then
|
if [ -e '/etc/nginx/nginx.conf' ]; then
|
||||||
cp /etc/nginx/nginx.conf $vst_backups/nginx/
|
cp /etc/nginx/* $vst_backups/nginx/
|
||||||
fi
|
fi
|
||||||
if [ -f '/etc/nginx/conf.d/default.conf' ]; then
|
if [ -f '/etc/nginx/conf.d' ]; then
|
||||||
cp /etc/nginx/conf.d/default.conf $vst_backups/nginx/
|
cp -r /etc/nginx/conf.d $vst_backups/nginx/
|
||||||
fi
|
|
||||||
if [ -e '/etc/nginx/conf.d/example_ssl.conf' ]; then
|
|
||||||
cp /etc/nginx/conf.d/example_ssl.conf $vst_backups/nginx/
|
|
||||||
fi
|
|
||||||
if [ -e '/etc/nginx/conf.d/vesta_ip.conf' ]; then
|
|
||||||
mv /etc/nginx/conf.d/vesta_ip.conf $vst_backups/nginx
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Backup httpd
|
# Backup httpd
|
||||||
|
@ -323,11 +317,8 @@ service httpd stop > /dev/null 2>&1
|
||||||
if [ -e '/etc/httpd/conf/httpd.conf' ]; then
|
if [ -e '/etc/httpd/conf/httpd.conf' ]; then
|
||||||
cp /etc/httpd/conf/httpd.conf $vst_backups/httpd/
|
cp /etc/httpd/conf/httpd.conf $vst_backups/httpd/
|
||||||
fi
|
fi
|
||||||
if [ -e '/etc/httpd/conf.d/ssl.conf' ]; then
|
if [ -e '/etc/httpd/conf.d' ]; then
|
||||||
cp /etc/httpd/conf.d/ssl.conf $vst_backups/httpd/
|
cp -r /etc/httpd/conf.d $vst_backups/httpd/
|
||||||
fi
|
|
||||||
if [ -e '/etc/httpd/conf.d/proxy_ajp.conf' ]; then
|
|
||||||
cp /etc/httpd/conf.d/proxy_ajp.conf $vst_backups/httpd/
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Backup bind
|
# Backup bind
|
||||||
|
@ -398,6 +389,7 @@ if [ -e '/home/admin/conf/' ]; then
|
||||||
mv /home/admin/conf/ $vst_backups/vesta/admin
|
mv /home/admin/conf/ $vst_backups/vesta/admin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
# Install packages #
|
# Install packages #
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue