I need to copy all the customizations in splunk like Apps, saved searches, User Profile and all the config files . Everything thats customized so that whenever i do a fresh build of spunk i can push back all the customizations in one shot to the new build. Any script/wayout would be of real help. Thanks
You should check my answer for https://answers.splunk.com/answers/663381/version-control-management-for-splunk-dashboards-r.html#an....
i think the diag dump on each search head, indexer and so on will tar it all up. "splunk diag" from the install/bin directory. you'll have all the conf files.
Diag wont include everything. Notably splunk.secret, which means you wont be able to restore passwords or encrypted values from installed apps or any conf files
Make sure you take copies of this file if you plan to do wholesale 'restores' without having to reconfigure applications & credentials
oh, and $SPLUNK_HOME/etc/passwd too!