I'm trying to backup our kvstores with the well documented backup command in a windows batch file. I tried using CALL as well as START. CALL doesn't do anything. START will initiate another splunk cmd window but it closes after some seconds without any result. Is there a way to catch error from the Splunk cmd window?
Here is what I tried, with a lot of combinations.
cd %CorrectFolder% > verified by running echo %cd%
CALL splunk.exe backup kvstore -archiveName %ArchiveName% -appName %AppName%
START "title" "splunk.exe" backup kvstore -archiveName %ArchiveName% -appName %AppName%