2011-08-03 08:45:10 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
|
|
|
|
FILEDUMP="/home/adulau/fulldump.pdns"
|
|
|
|
FILTER="*"
|
2011-08-03 15:27:48 +00:00
|
|
|
redis-cli KEYS "s:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDUMP}; VAL=`redis-cli GET ${LINE}`; echo "$VAL">>${FILEDUMP}; done;
|
|
|
|
redis-cli KEYS "l:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDUMP}; VAL=`redis-cli GET ${LINE}`; echo "$VAL">>${FILEDUMP}; done;
|
|
|
|
redis-cli KEYS "o:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDUMP}; VAL=`redis-cli GET ${LINE}`; echo "$VAL">>${FILEDUMP}; done;
|
2011-08-03 08:45:10 +00:00
|
|
|
|
2011-08-03 15:27:48 +00:00
|
|
|
redis-cli KEYS "r:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDUMP}; VAL=`redis-cli --raw -d , SMEMBERS ${LINE}`; echo "$VAL">>${FILEDUMP}; done;
|
2011-08-03 08:45:10 +00:00
|
|
|
FILTER="*"
|
2011-08-03 15:27:48 +00:00
|
|
|
redis-cli KEYS "v:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDUMP}; VAL=`redis-cli --raw -d , SMEMBERS ${LINE}`; echo "$VAL">>${FILEDUMP}; done;
|
2011-08-03 08:45:10 +00:00
|
|
|
|
|
|
|
|