You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now tested on Windows and Splunk Cloud (note this version of the app is not installed on SplunkCloud, the VersionControl for SplunkCloud is the app to install on the SplunkCloud instance, this variation of the app includes only what is required to remotely backup/restore a SplunkCloud instance
This app is still used for SplunkCloud instances, but this app is installed on-prem
Updates include:
- Updated python SDK to 1.6.13
- New options in both backup & restore so that you can specify the location of the git / SSH command
- The ability to only backup particular apps by default rather than to backup all and rely on an exclusion list (appsList)
- Support for passwords.conf instead of plain text passwords
- Proxy support
- Re-wrote the runOSProcess function so that it works on Windows as expected
The README.md has had various updates including more details around setup and how this was tested on Windows
*passwordtouseforRESTAPIofsrcURLargument (requiredifnotusinguseLocalAuth), use'password:<name in passwords.conf>'andtheappwillattempttofindthepasswordinyourpasswords.conffile
*passwordtouseforRESTAPIofsrcURLargument (onlyrequiredifnotusinguseLocalAuth), use'password:<name in passwords.conf>'andtheappwillattempttofindthepasswordinyourpasswords.conffile
<description>username to use for REST API of srcURL argument (only required if not using useLocalAuth)</description>
34
+
<description>username to use for REST API of srcURL argument (required if not using useLocalAuth)</description>
35
35
<required_on_create>false</required_on_create>
36
36
</arg>
37
37
<arg name="srcPassword">
38
38
<title>srcPassword</title>
39
-
<description>password to use for REST API of srcURL argument (only required if not using useLocalAuth)</description>
39
+
<description>password to use for REST API of srcURL argument (required if not using useLocalAuth). If started with password: the name after the : symbol (password:mypass) is searched for in passwords.conf</description>
40
40
<required_on_create>false</required_on_create>
41
41
</arg>
42
42
<arg name="gitTempDir">
43
43
<title>gitTempDir</title>
44
-
<description>location where to store the output of the script on the filesystem</description>
44
+
<description>location where to store the output of the script on the filesystem (note this directory will be deleted/re-created but the parent dir must exist)</description>
45
45
</arg>
46
46
<arg name="gitRepoURL">
47
47
<title>gitRepoURL</title>
48
48
<description>git repository URL to store the objects (SSH URL only)</description>
49
49
</arg>
50
50
<arg name="noPrivate">
51
51
<title>noPrivate</title>
52
-
<description>disable the backup of user level / private objects (true/false)</description>
52
+
<description>disable the backup of user level / private objects (true/false), default false</description>
53
53
<validation>is_bool('noPrivate')</validation>
54
54
<required_on_create>false</required_on_create>
55
55
</arg>
56
56
<arg name="noDisabled">
57
57
<title>noDisabled</title>
58
-
<description>disable the backup of objects with a disabled status in Splunk (true/false)</description>
58
+
<description>disable the backup of objects with a disabled status in Splunk (true/false), default false</description>
59
59
<validation>is_bool('noDisabled')</validation>
60
60
<required_on_create>false</required_on_create>
61
61
</arg>
@@ -81,24 +81,39 @@
81
81
</arg>
82
82
<arg name="debugMode">
83
83
<title>debugMode</title>
84
-
<description>turn on DEBUG level logging (defaults to INFO) (true/false)</description>
84
+
<description>turn on DEBUG level logging (defaults to INFO) (true/false), default false</description>
85
85
<validation>is_bool('debugMode')</validation>
86
86
<required_on_create>false</required_on_create>
87
87
</arg>
88
88
<arg name="useLocalAuth">
89
89
<title>useLocalAuth</title>
90
-
<description>Instead of using the srcUsername/srcPassword, use the session_key of the user running the modular input instead (works on localhost only) (true/false)</description>
90
+
<description>Instead of using the srcUsername/srcPassword, use the session_key of the user running the modular input instead (works on localhost only) (true/false), default false</description>
91
91
<validation>is_bool('useLocalAuth')</validation>
92
92
<required_on_create>false</required_on_create>
93
93
</arg>
94
94
<arg name="remoteAppName">
95
95
<title>remoteAppName</title>
96
-
<description>defaults to SplunkVersionControl, this app needs to contain the savedsearches and potentially the splunkversioncontrol_globalexclusionlist</description>
96
+
<description>defaults to SplunkVersionControl, this app needs to contain the savedsearches and potentially the splunkversioncontrol_globalexclusionlist, use SplunkVersionControlCloud on a cloud-based instance</description>
97
97
<required_on_create>false</required_on_create>
98
98
</arg>
99
99
<arg name="appsList">
100
100
<title>appsList</title>
101
-
<description>Comma separated list of apps, this changes Splunk Version Control to not list all applications and instead only runs a backup on the specified apps. Useful for Splunk Cloud where you cannot access the apps REST endpoint</description>
101
+
<description>Comma separated list of apps, this changes Splunk Version Control to not list all applications and instead only runs a backup on the specified apps</description>
102
+
<required_on_create>false</required_on_create>
103
+
</arg>
104
+
<arg name="git_command">
105
+
<title>git_command</title>
106
+
<description>defaults to 'git', can be overriden (for example on a Windows server) to use a full path to the git command</description>
107
+
<required_on_create>false</required_on_create>
108
+
</arg>
109
+
<arg name="ssh_command">
110
+
<title>ssh_command</title>
111
+
<description>defaults to 'ssh', can be overriden (for example on a Windows server) to use a full path to the ssh command</description>
112
+
<required_on_create>false</required_on_create>
113
+
</arg>
114
+
<arg name="proxy">
115
+
<title>proxy</title>
116
+
<description>If supplied provides a proxy setting to use to access the srcURL (https proxy). Use https://user:password:[email protected]:3128 and the application will obtain the password for the entry 'passwordinpasswordsconf'. If password: is not used the password is used as per a normal proxy setting, for example https://user:[email protected]:3128</description>
0 commit comments