From 54c04c68d3fb214d348b01b060f171b0073bee91 Mon Sep 17 00:00:00 2001 From: Prabuddha Chakraborty Date: Mon, 2 Nov 2015 17:15:29 +0530 Subject: [PATCH] --wp exception for Fix #637 --- ee/cli/plugins/site_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ee/cli/plugins/site_functions.py b/ee/cli/plugins/site_functions.py index 131f2364..5061344f 100644 --- a/ee/cli/plugins/site_functions.py +++ b/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)