Deployment Architecture

what do you put in your .gitignore file for a system backup?

awurster
Contributor

Splunkers - what do you all put in your gitignore files when doing a backup? primarily concerned with a Search Head in a distributed deployment, and backing up configs, apps, etc

Tags (3)
0 Karma
1 Solution

awurster
Contributor

well this is what i use anyhow.
https://bitbucket.org/snippets/atlassian/TBXp

### exclude ###
#############

# default binaries
bin/*

# default configs #
etc/system/*
etc/apps/search/*

# key files and hashes #
etc/auth/
etc/passwd

# default apps #
etc/apps/search/*
etc/apps/sample_app/
etc/apps/launcher/
etc/apps/gettingstarted/
etc/apps/introspection_generator_addon/
etc/apps/framework
etc/apps/SplunkLightForwarder/
etc/apps/splunk-sdk-python-master/

# large lookup files #
etc/apps/sos/lookups/
etc/apps/secint/lookups/

# internals
etc/modules/
etc/anonymizer/
etc/myinstall/
etc/init.d/
etc/openldap/
etc/.?*

include/
lib/
openssl/
share/
var/
master.zip
/.?*
/*.txt


### include ###
#############

# custom scripts #
!bin/scripts/

# global configs #
!etc/system/local/
!etc/apps/search/local/
!etc/splunk-launch.conf

View solution in original post

awurster
Contributor

well this is what i use anyhow.
https://bitbucket.org/snippets/atlassian/TBXp

### exclude ###
#############

# default binaries
bin/*

# default configs #
etc/system/*
etc/apps/search/*

# key files and hashes #
etc/auth/
etc/passwd

# default apps #
etc/apps/search/*
etc/apps/sample_app/
etc/apps/launcher/
etc/apps/gettingstarted/
etc/apps/introspection_generator_addon/
etc/apps/framework
etc/apps/SplunkLightForwarder/
etc/apps/splunk-sdk-python-master/

# large lookup files #
etc/apps/sos/lookups/
etc/apps/secint/lookups/

# internals
etc/modules/
etc/anonymizer/
etc/myinstall/
etc/init.d/
etc/openldap/
etc/.?*

include/
lib/
openssl/
share/
var/
master.zip
/.?*
/*.txt


### include ###
#############

# custom scripts #
!bin/scripts/

# global configs #
!etc/system/local/
!etc/apps/search/local/
!etc/splunk-launch.conf
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...