Browse Source

--wp exception for Fix #637

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

4
ee/cli/plugins/site_functions.py

@ -618,7 +618,7 @@ def sitebackup(self, data):
.format(data['site_name']), backup_path)
if data['currsitetype'] in ['html', 'php', 'proxy', 'mysql']:
if data['pagespeed'] is True:
if data['pagespeed'] is True and not data['wp']:
Log.info(self, "Backing up Webroot \t\t", end='')
EEFileUtils.copyfiles(self, ee_site_webroot + '/htdocs', backup_path + '/htdocs')
Log.info(self, "[" + Log.ENDC + "Done" + Log.OKBLUE + "]")
@ -658,7 +658,7 @@ def sitebackup(self, data):
Log.info(self, "[" + Log.ENDC + "Done" + Log.OKBLUE + "]")
# move wp-config.php/ee-config.php to backup
if data['currsitetype'] in ['mysql', 'proxy']:
if data['pagespeed'] is True:
if data['pagespeed'] is True and not data['wp']:
EEFileUtils.copyfile(self, configfiles[0], backup_path)
else:
EEFileUtils.mvfile(self, configfiles[0], backup_path)

Loading…
Cancel
Save