mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
even more lighter backup procedure
This commit is contained in:
parent
2280bd5be9
commit
3fd8918e31
1 changed files with 2 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue