From 79f4d336ecb8c95e22deb1c5aab6249a374ab1c8 Mon Sep 17 00:00:00 2001 From: mh Date: Thu, 19 Jan 2017 15:50:15 +0100 Subject: [PATCH] also pass --root with the path to backup to the backupwordpress cmd This is mainly to work around a bug in backupwordpress if home and siteurl are not the same. See https://github.com/humanmade/backupwordpress/issues/1162 for technical details --- files/scripts/upgrade_wordpress.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/scripts/upgrade_wordpress.sh b/files/scripts/upgrade_wordpress.sh index 1bf4baa..9494f61 100644 --- a/files/scripts/upgrade_wordpress.sh +++ b/files/scripts/upgrade_wordpress.sh @@ -60,7 +60,7 @@ function wp_backup { echo "Making the backup..." # exclude the default backup path - run_wp_hard "backupwordpress backup --destination=${backup_dir} --excludes='wp-content/backupwordpress-*'" + run_wp_hard "backupwordpress backup --root=${wwwdir} --destination=${backup_dir} --excludes='wp-content/backupwordpress-*'" # only deactivate if we updated it # otherwise we assume the user has it activated and configured if [ $activate_backup -gt 0 ]; then