Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
198 B

#!/bin/sh
set -e
DEST=/home/lbkp/redis
[ -d $DEST ] || mkdir -p $DEST
for FILE in dump.rdb appendonly.aof; do
if [ -e /var/lib/redis/$FILE ]; then
cp /var/lib/redis/$FILE $DEST/
fi
done