Skip to content

Commit

Permalink
also pass --root with the path to backup to the backupwordpress cmd
Browse files Browse the repository at this point in the history
This is mainly to work around a bug in backupwordpress if home and
siteurl are not the same.

See xibodevelopment/backupwordpress#1162 for
technical details
  • Loading branch information
duritong committed Jan 19, 2017
1 parent 423cd77 commit 79f4d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/scripts/upgrade_wordpress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 79f4d33

Please sign in to comment.