Browse Source

Fix #637

hotfix/v3.3.14
Prabuddha Chakraborty 9 years ago
parent
commit
4ea46a928b
  1. 11
      ee/cli/plugins/site_functions.py

11
ee/cli/plugins/site_functions.py

@ -618,9 +618,14 @@ def sitebackup(self, data):
.format(data['site_name']), backup_path)
if data['currsitetype'] in ['html', 'php', 'proxy', 'mysql']:
Log.info(self, "Backing up Webroot \t\t", end='')
EEFileUtils.mvfile(self, ee_site_webroot + '/htdocs', backup_path)
Log.info(self, "[" + Log.ENDC + "Done" + Log.OKBLUE + "]")
if data['pagespeed'] is True:
Log.info(self, "Backing up Webroot \t\t", end='')
EEFileUtils.copyfile(self, ee_site_webroot + '/htdocs', backup_path)
Log.info(self, "[" + Log.ENDC + "Done" + Log.OKBLUE + "]")
else:
Log.info(self, "Backing up Webroot \t\t", end='')
EEFileUtils.mvfile(self, ee_site_webroot + '/htdocs', backup_path)
Log.info(self, "[" + Log.ENDC + "Done" + Log.OKBLUE + "]")
configfiles = glob.glob(ee_site_webroot + '/*-config.php')
if not configfiles:

Loading…
Cancel
Save