Skip to content

Instantly share code, notes, and snippets.

View gdeglin's full-sized avatar
🚀

George Deglin gdeglin

🚀
View GitHub Profile
#!/bin/bash
#
## redis backup script
## usage
## redis-backup.sh port backup.dir
port=${1:-6379}
backup_dir=${2:-"/data/backup/redis"}
cli="/usr/local/bin/redis-cli -p $port"