You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
## About
4
4
A script to copy over a production database to another server, also has the ability to copy across imagery.
5
5
6
-
Currently the script is configured to attempt Magento 2 and WordPress database migrations and assumes you have your WordPress database details configured in the `magento/app/etc/env.php` file as a second `connection`.
6
+
Currently the script is configured to attempt Magento 2 and WordPress database migrations and assumes you have your WordPress database details configured in the `magento/app/etc/env.php` file as a second `connection` named `wordpress`.
-b, --local-backup, --no-local-backup: perform a backup before importing remote (off by default)
40
-
-f, --full, --no-full: full database dump (off by default)
40
+
-b, --local-backup: perform a backup before importing remote (off by default)
41
+
-f, --full: full database dump (off by default)
42
+
-w, --wordpress: include wordpress content (off by default)"
41
43
-v, --version: Prints version
42
44
-h, --help: Prints help
43
45
@@ -75,6 +77,18 @@ parse_commandline()
75
77
{ begins_with_short_option "$_next"&&shift&&set -- "-f""-${_next}""$@"; } || die "The short option '$_key' can't be decomposed to ${_key:0:2} and -${_key:2}, because ${_key:0:2} doesn't accept value and '-${_key:2:1}' doesn't correspond to a short option."
76
78
fi
77
79
;;
80
+
-w|--no-wordpress|--wordpress)
81
+
_arg_wordpress="on"
82
+
test"${1:0:5}" = "--no-"&& _arg_wordpress="off"
83
+
;;
84
+
-w*)
85
+
_arg_wordpress="on"
86
+
_next="${_key##-w}"
87
+
iftest -n "$_next" -a "$_next"!= "$_key"
88
+
then
89
+
{ begins_with_short_option "$_next"&&shift&&set -- "-w""-${_next}""$@"; } || die "The short option '$_key' can't be decomposed to ${_key:0:2} and -${_key:2}, because ${_key:0:2} doesn't accept value and '-${_key:2:1}' doesn't correspond to a short option."
0 commit comments