This documentation does not apply to the most recent version of Splunk.
This documentation applies to the following versions of Splunk: 3.1.1 , 3.1.2 , 3.1.3 , 3.1.4
You can use Splunk's CLI to copy aging data as it moves through its stages. As indexes move into the warm database ($SPLUNK_HOME/var/lib/splunk/defaultdb/db) or the cold database ($SPLUNK_HOME/var/lib/splunk/defaultdb/colddb), you can copy or move the files. To do this without stopping the Splunk server, you should first lock the directory. Unlock after the file is copied.
To use Splunk's CLI, navigate to the $SPLUNK_HOME/bin/ directory and use the ./splunk command. You can also add Splunk to your path and use the splunk command.
$ source $SPLUNK_HOME/bin/setSplunkEnv
$ locktool $SPLUNK_HOME/var/lib/splunk/defaultdb/db
$ mv $SPLUNK_HOME/var/lib/splunk/defaultdb/db/db_1181756465_1162600547_0 /home/bakunin
locktool -u $SPLUNK_HOME/var/lib/splunk/defaultdb/db