UpdraftPlus Home › Forums › Paid support forum – UpdraftPlus backup plugin › wp-cli Full Backup
Tagged: wp-cli
- This topic has 5 replies, 3 voices, and was last updated 5 years, 11 months ago by Dee Nutbourne.
-
AuthorPosts
-
May 22, 2018 at 7:21 am #282810JanParticipant
I am trying to run a Full Backup using wp-cli. I am running the command shown in the documentation here: https://updraftplus.com/wp-cli-updraftplus-documentation/
This is my command:
wp updraftplus backup –include-files= “plugins,themes,uploads,wpcore”
I get this message when I run it in ssh:
Error: Too many positional arguments: -include-files=plugins,themes,uploads,wpcoreWhen I run this: wp updraftplus backup it works fine, but I need a full backup and this ran a DB backup.
So does anyone know what is wrong?
Thanks for the help.
May 22, 2018 at 12:51 pm #282883pbaldhaModeratorHi Jan,
Our documentation have an issue in an example. We are correcting it now. Kindly accept apologies for inconvenience from my side.
You should try
wp updraftplus backup -–include-files= "plugins,themes,uploads,wpcore"
instead ofwp updraftplus backup –include-files= "plugins,themes,uploads,wpcore"
. In short, You should use double dash--
instead of-
.Thank you very much,
PrashantMay 22, 2018 at 4:48 pm #282953JanParticipantThanks for the reply. I tried the double dash and I still get the same message.
Here’s my command: wp updraftplus backup —include-files= “plugins,themes,uploads,wpcore”I figured out to get this to show as — in this post I have to use 3 dash’s.
Thanks.
May 23, 2018 at 11:27 am #283141pbaldhaModeratorHi Jan,
There is space after
—include-files=
in your command, so you are facing the issue.Can you please run the command:
wp updraftplus backup --include-files="plugins,themes,uploads,wpcore"
.I have tested this command in my test environment and it is working fine.
Thank You,
PrashantMay 23, 2018 at 10:15 pm #283323JanParticipantOK I got this to work. But, there is no wp-content folder in any of the zip files, so there’s something missing somewhere. I looked in each of the zip files. I have db, others, plugins, themes, uploads, wpcore, but none of those files contains wp-content. Basically themes, plugins, uploads, and others is just in the domains folder instead of the wp-content folder.
Can you tell me why or what I’m missing?
Thanks.
May 24, 2018 at 4:06 pm #283531Dee NutbourneModeratorHi,
The backup files do not contain a copy of the ‘wp-content’ folder itself, as UpdraftPlus assumes that this will be in place when restored.
Best Wishes,
David N -
AuthorPosts
- The topic ‘wp-cli Full Backup’ is closed to new replies.