From b197b83c8535b11e6bc12b6555dae9c3c0fdb90a Mon Sep 17 00:00:00 2001 From: harshadyeola Date: Thu, 9 Oct 2014 16:03:39 +0530 Subject: [PATCH] backup directory structure updated --- src/modules/site/ee_mod_site_backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/site/ee_mod_site_backup.sh b/src/modules/site/ee_mod_site_backup.sh index a7191315..b1201e5c 100644 --- a/src/modules/site/ee_mod_site_backup.sh +++ b/src/modules/site/ee_mod_site_backup.sh @@ -5,7 +5,7 @@ function ee_mod_site_backup() # Backup directory setup local ee_webroot=$(grep root /etc/nginx/sites-available/$EE_DOMAIN | awk '{ print $2 }' | sed 's/;//g' | sed 's/\/htdocs//') - if [ ! -d $ee_webroot/backup ] || [ ! -d $ee_webroot/backup/htdocs ] || [ ! -d $ee_webroot/backup/nginx ] || [ ! -d $ee_webroot/backup/db ]; then + if [ ! -d $ee_webroot/backup ] || [ ! -d $ee_webroot/backup/htdocs/$EE_DATE ] || [ ! -d $ee_webroot/backup/nginx ] || [ ! -d $ee_webroot/backup/db ]; then mkdir -p $ee_webroot/backup/{htdocs/$EE_DATE,nginx,db} || ee_lib_error "Unable to create $ee_webroot/backup directory, exit status =" $? fi