-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Hello,
Firstly, thanks for your great work.
I read this article, and I found there are lost different upon how to use it:
How can I find orphaned Multisite tables
Run wp multisite-db list from the command-line
How can I delete orphaned Multisite tablesRun wp multisite-db delete --force from the command-line
but in that article, there are different ways:
In order to figure out which sites are safe to remove from, we first need a list of all subsites. This can gather by running the following wp-cli command wp site list --format=ids which will output something like 1 2 4 7.
Next we need a list of actual upload folders within multisite. On legacy multisite networks this is found under /wp-content/blogs.dir/ for modern networks /wp-content/uploads/sites. From the terminal we can grab a full list by running ls ~/Backup/wp-content/blogs.dir/ which will return something like this:
1 2 3 4 5 6 7
With can take those IDs and parse them using a bash script remove_orphaned_mu_uploads.shRunning remove_orphaned_mu_uploads.sh will output the following: 3 5 6 which are orphaned upload directories. These folders are safe to delete.
would you please clear upon how to use it?
Secondly,
I already activated it:
http://prntscr.com/lluhb9
but, there is errors show up:
root@101:
# wp multisite-db list#
Warning: No WordPress install found. If the command 'multisite-db list' is in a plugin or theme, pass --path=path/to/wordpress.
Error: 'multisite-db' is not a registered wp command. See 'wp help' for available commands.
root@101:
does it support wordpress 4.9.8?
Thanks