cleanup dump script

This commit is contained in:
Alexandre Dulaunoy 2011-08-03 17:27:48 +02:00
parent b2a17d0d51
commit 80a10db03a

View file

@ -1,22 +1,14 @@
#!/bin/bash #!/bin/bash
# #
rm fulldump
FILEDUMP="/home/adulau/fulldump.pdns" FILEDUMP="/home/adulau/fulldump.pdns"
FILTER="*" FILTER="*"
redis-cli KEYS "s:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDU redis-cli KEYS "s:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDUMP}; VAL=`redis-cli GET ${LINE}`; echo "$VAL">>${FILEDUMP}; done;
MP}; 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 "l:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDU redis-cli KEYS "o:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDUMP}; VAL=`redis-cli GET ${LINE}`; echo "$VAL">>${FILEDUMP}; done;
MP}; VAL=`redis-cli GET ${LINE}`; echo "$VAL">>${FILEDUMP}; done;
redis-cli KEYS "o:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDU
MP}; VAL=`redis-cli GET ${LINE}`; echo "$VAL">>${FILEDUMP}; done;
redis-cli KEYS "r:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDU
MP}; VAL=`redis-cli --raw -d , SMEMBERS ${LINE}`; echo "$VAL">>${FILEDUMP}; done
;
redis-cli KEYS "r:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDUMP}; VAL=`redis-cli --raw -d , SMEMBERS ${LINE}`; echo "$VAL">>${FILEDUMP}; done;
FILTER="*" FILTER="*"
redis-cli KEYS "v:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDU redis-cli KEYS "v:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDUMP}; VAL=`redis-cli --raw -d , SMEMBERS ${LINE}`; echo "$VAL">>${FILEDUMP}; done;
MP}; VAL=`redis-cli --raw -d , SMEMBERS ${LINE}`; echo "$VAL">>${FILEDUMP}; done
;