Browse Source

Fix #637

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

5
ee/cli/plugins/site_functions.py

@ -618,6 +618,11 @@ def sitebackup(self, data):
.format(data['site_name']), backup_path) .format(data['site_name']), backup_path)
if data['currsitetype'] in ['html', 'php', 'proxy', 'mysql']: if data['currsitetype'] in ['html', 'php', 'proxy', 'mysql']:
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='') Log.info(self, "Backing up Webroot \t\t", end='')
EEFileUtils.mvfile(self, ee_site_webroot + '/htdocs', backup_path) EEFileUtils.mvfile(self, ee_site_webroot + '/htdocs', backup_path)
Log.info(self, "[" + Log.ENDC + "Done" + Log.OKBLUE + "]") Log.info(self, "[" + Log.ENDC + "Done" + Log.OKBLUE + "]")

Loading…
Cancel
Save