Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Redis Config, Version, Backup for Stack Overflow's Bosun Instance
0 * * * * cp -a /var/lib/redis/bosun-redis.rdb '/mnt/bosun_backup/bosun_redis_'$(date +\%Y-\%m-\%d-\%H).rdb && find '/mnt/bosun_backup/' -maxdepth 1 -name 'bosun_*.rdb' -ctime '+2' -delete
## Hmpf, ctime makes no since, just noticed, but whatever.
daemonize yes
pidfile /var/run/redis/redis-bosun.pid
port 6389
timeout 300
# scollector.group = bosun
loglevel notice
logfile /var/log/redis/redis-bosun.log
syslog-enabled yes
syslog-ident redis-bosun
syslog-facility local2
databases 1000
rdbcompression no
dbfilename bosun-redis.rdb
dir /var/lib/redis
appendonly yes
appendfsync everysec
activerehashing yes
client-output-buffer-limit slave 0 0 0
repl-backlog-size 256mb
repl-diskless-sync yes
save 900 1
redis-server --version
Redis server v=2.8.21 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64 build=8d75f6055cd76ee7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.