<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splunk backup and restore procedure? in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-backup-and-restore-procedure/m-p/33940#M387</link>
    <description>&lt;P&gt;Any more details on this?  I tried the following which did not work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;cd $SPLUNK_HOME/var/lib/splunk/

tar -zcvf mydatabase.tgz mydatabase
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I then copied the .tgz to another splunk instance and untar'd it in the same location.  Restarted Splunk and Splunk restarts with the Index disabled.  Any ideas?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2017 13:04:28 GMT</pubDate>
    <dc:creator>TonyLeeVT</dc:creator>
    <dc:date>2017-04-19T13:04:28Z</dc:date>
    <item>
      <title>Splunk backup and restore procedure?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-backup-and-restore-procedure/m-p/33937#M384</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have attempted to backup and restore splunk by simply tar up the entire splunk directory and restore it to a fresh installation of splunk. However when I start splunk service, splunkd crashes after.&lt;/P&gt;

&lt;P&gt;I will require to backup the following:&lt;BR /&gt;
1) data and indexes&lt;BR /&gt;
2) configuration settings, users 
3) saved searches, reports, field extractions, tags..etc
4) splunk apps&lt;/P&gt;

&lt;P&gt;My questions are:&lt;BR /&gt;
1) Do I need to run the command to roll my hot buckets to warm buckets first?Currently in my "/opt/splunk/var/lib/splunk/defaultdb/db" directory I only see "hot_v1_X"  &lt;/P&gt;

&lt;P&gt;2) Can I backup/tar the splunk directory without stopping splunk services?  &lt;/P&gt;

&lt;P&gt;3) In particular,which are the files/directory that I should backup?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2011 10:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-backup-and-restore-procedure/m-p/33937#M384</guid>
      <dc:creator>remy06</dc:creator>
      <dc:date>2011-01-27T10:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk backup and restore procedure?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-backup-and-restore-procedure/m-p/33938#M385</link>
      <description>&lt;P&gt;Please see the docs:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Indexer/Backupindexeddata" rel="nofollow"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Indexer/Backupindexeddata&lt;/A&gt;
and
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Admin/Backupconfigurations" rel="nofollow"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Admin/Backupconfigurations&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2011 11:42:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-backup-and-restore-procedure/m-p/33938#M385</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-01-27T11:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk backup and restore procedure?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-backup-and-restore-procedure/m-p/33939#M386</link>
      <description>&lt;P&gt;You don't need to stop Splunk to backup the configs.&lt;/P&gt;

&lt;P&gt;As far as the configs go, create a git repo in $SPLUNK_BACKUP (off box, hopefully) then add this cron job however often you want the configs backed up (hourly, daily, decade-ly)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rsync -vaz $SPLUNK_HOME/etc/ $SPLUNK_BACKUP/;
cd $SPLUNK_BACKUP;
git commit -a -m "Configs as of $(date)";
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you can revert back to whatever version of your configs you want by looking through &lt;CODE&gt;git log&lt;/CODE&gt; for the date you want to revert to, running &lt;CODE&gt;git checkout $COMMIT&lt;/CODE&gt;, copying it to your indexer(s), and bouncing splunkd&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2012 20:26:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-backup-and-restore-procedure/m-p/33939#M386</guid>
      <dc:creator>edbolton</dc:creator>
      <dc:date>2012-05-10T20:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk backup and restore procedure?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-backup-and-restore-procedure/m-p/33940#M387</link>
      <description>&lt;P&gt;Any more details on this?  I tried the following which did not work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;cd $SPLUNK_HOME/var/lib/splunk/

tar -zcvf mydatabase.tgz mydatabase
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I then copied the .tgz to another splunk instance and untar'd it in the same location.  Restarted Splunk and Splunk restarts with the Index disabled.  Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 13:04:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-backup-and-restore-procedure/m-p/33940#M387</guid>
      <dc:creator>TonyLeeVT</dc:creator>
      <dc:date>2017-04-19T13:04:28Z</dc:date>
    </item>
  </channel>
</rss>

