I'm testing out automatic archiving, but i can't seem to get it to work.
I'm not getting any backup files or error messages.
i'm testing on splunk 4.0.8 build 73243 on Windows XP 32bit.
@echo off
:: Windows compressed archive bat file to use with indexes.conf coldToFrozenScript
::
:: READ THIS!!!
:: Please modify dest_base to be your archive location, please do not
:: put a trailing '\' at end of path
::
set dest_base=c:\backups
::
:: EXAMPLE OF FOLLOWING VALUES BELOW:
:: source_path is: C:\Program Files\Splunk\var\lib\splunk\defaultdb\colddb\db_234234232_132342342_3
:: source_base is C:\Program Files\Splunk\var\lib\splunk\defaultdb\colddb\
:: source_leaf is db_234234232_132342342_3
::
set source_path=%1
set source_base=%~dp1
set source_leaf=%~nx1
set dest_final=%dest_base%\%source_leaf%
echo source_path is %source_path%
echo source_base is %source_base%
echo source_leaf is %source_leaf%
echo dest_final is %dest_final%
for %%i in (%1\*.tsidx) do splunk-compresstool.exe -M "%%i"
::
:: we have to manually create the destination directory and provide that
:: as a target to xcopy since it only is able to copy the source directory contents
:: and not the directory itself
::
mkdir %dest_final%
xcopy %1 %dest_final% /E /I /C /Y