get_tweaksetting list keys
Is there an API function or some way to list available tweak setting keys?
To replicate settings from one server to another, would this be a feasible action?
Iterate through get_tweaksetting keys, getting the keys and respective values on Server A. Then set_tweaksetting for each key and value on Server B.
But in order to do this, get_tweaksetting has to know what key to look for.
May not be feasible. Thought I'd ask.
-
I don't think there is however, there is nothing stopping you from trolling the API documentation, getting the keys and adding them to an array. Then simply iterate through the array running your function on each. If it helps, those settings are stored here: /var/cpanel/cpanel.config0
Please sign in to leave a comment.
Comments
2 comments