yannh / redis-dump-go

Backup & Restore your Redis server - FAST
MIT License
280 stars 58 forks source link

Please add a shell to the docker-image or an option to specify output file #45

Closed pamelia closed 10 months ago

pamelia commented 1 year ago

We do backups with cronjob in kubernetes like this:

command: ['bash', '-c', '/redis-dump-go -host redis > /backup/redis.resp']

The docker-image you provide doesn't have a shell only the binary and you don't provide an option to specify output file..

yannh commented 10 months ago

Hi @pamelia , I provide two different flavors of the docker image, some come with alpine: https://github.com/yannh/redis-dump-go/pkgs/container/redis-dump-go , eg 0.8.0-alpine . Alpine itself doesn't come with bash, but does have a shell, eg /bin/sh , with which you should be able to do what you want :+1: