Skip to content

Instantly share code, notes, and snippets.

@jeremymarc
Forked from arnaud-lb/logrotate.conf
Created July 13, 2012 20:05
Show Gist options
  • Save jeremymarc/3107073 to your computer and use it in GitHub Desktop.
Save jeremymarc/3107073 to your computer and use it in GitHub Desktop.
backuprotate
/var/lib/redis/dump.rdb {
# rotate every day and keep 30 backups
daily
rotate 30
missingok
# rename backups dump.rdb-YYYYMMDD
# instead of dump.rdb.X: more rsync friendly
dateext
# create a new dump
postrotate
redis-cli bgsave
endscript
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment