Skip to main content

WordPress Toolkit main-domain-id change/update

Comments

4 comments

  • cPRex Jurassic Moderator
    Hey there! Inside the WordPress Toolkit interface, there is a "clone" feature that would allow you to duplicate the site content. Here is a screenshot showing this: I'm not finding anything about updating the specific indexing number. Is there a specific reason you would need to keep that number the same after the operation has been completed?
    0
  • Petros
    Hey there! Inside the WordPress Toolkit interface, there is a "clone" feature that would allow you to duplicate the site content. Here is a screenshot showing this: alt="Screen Shot 2022-06-21 at 3.13.37 PM.png">78601 I'm not finding anything about updating the specific indexing number. Is there a specific reason you would need to keep that number the same after the operation has been completed?

    Hi! I keep WordPress toolkit backups using a shell script, using the following command to perform each one for all of the hosted domains: /usr/local/bin/wp-toolkit --backup -instance-id 3 -operation backup It would be easier for me to just add 1 to the above instance-id instead of performing wp-toolkit --list to record the id of newly created domains, as sometimes detaching is necessary and by reattaching the domain, this index is not assigned based on the last used one but from its last number (assigned) increased by 1. Thank you.
    0
  • cPRex Jurassic Moderator
    I spoke with the WordPress Toolkit team, and confirmed there is not a way to change the Instance ID once it is created. They did recommend using the main-domain-id variable instead if that is easier, as that also works with the --backup command.
    0
  • Petros
    I spoke with the WordPress Toolkit team, and confirmed there is not a way to change the Instance ID once it is created. They did recommend using the main-domain-id variable instead if that is easier, as that also works with the --backup command.

    Thank you for the information.
    0

Please sign in to leave a comment.