|
|
@ -10,7 +10,7 @@ function ee_mod_site_backup() |
|
|
|
|
|
|
|
# Move htdocs |
|
|
|
if [ "$EE_SITE_CURRENT_OPTION" = "HTML" ] || [ "$EE_SITE_CURRENT_OPTION" = "MYSQL" ] || [ "$EE_SITE_CURRENT_OPTION" = "PHP" ]; then |
|
|
|
mv $ee_webroot/htdocs $ee_webroot/backup/htdocs/htdocs-$(date +"%m-%d-%y") || ee_lib_error "Unable to create $ee_webroot/htdocs backup, exit status =" $? |
|
|
|
mv $ee_webroot/htdocs $ee_webroot/backup/htdocs/htdocs-$(date +"%m-%d-%y:") || ee_lib_error "Unable to create $ee_webroot/htdocs backup, exit status =" $? |
|
|
|
mkdir -p $ee_webroot/htdocs |
|
|
|
fi |
|
|
|
|
|
|
|