Skip to main content

userdata_update question

Comments

3 comments

  • cPRex Jurassic Moderator
    Hey there! I believe "--rebuild" in your post was a typo as the flag is "--reset" so I just wanted to point that out to avoid confusion. # /usr/local/cpanel/bin/userdata_update --help Usage: userdata_update [--reset] [--unpark_addons] [--help | --usage] Options: -------------------------------- --reset IMPORTANT! Do not conserve existing userdata and regenerate new userdata files based upon the current Apache configuration file. This should be used as a last resort. --unpark-addons Fix instances where an addon domain is also listed as a parked domain. This flag will result in a reset of all userdata files. See "--reset" warnings for more information. --help Display usage information
    Yes, if you remove the /var/cpanel/userdata/username directory, running userdata_update with no flags will recreate that. Rather than remove it, it would be safer to copy that to another location, such as /root, so you can manually restore the old version if necessary.
    0
  • edigest
    Hey there! I believe "--rebuild" in your post was a typo as the flag is "--reset" so I just wanted to point that out to avoid confusion.

    [QUOTE] Yes, if you remove the /var/cpanel/userdata/username directory, running userdata_update with no flags will recreate that.
    Yep, meant --reset. ;) I backed up the entire userdata directory. I don't plan to remove the entire directory. Just a selection of domains in /var/cpanel/userdata//. Just wanted to make sure there were not 'gotchas' running userdata_update with no flags since the documentation is pretty sparse. Many thanks!
    0
  • cPRex Jurassic Moderator
    You're welcome!
    0

Please sign in to leave a comment.