https://github.com/xtaci/bgsave
background save process of redis
https://github.com/xtaci/bgsave
Last synced: about 1 year ago
JSON representation
background save process of redis
- Host: GitHub
- URL: https://github.com/xtaci/bgsave
- Owner: xtaci
- License: mit
- Created: 2015-05-22T03:42:39.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-08-02T04:39:28.000Z (almost 10 years ago)
- Last Synced: 2025-03-28T12:51:12.819Z (over 1 year ago)
- Language: Go
- Size: 1.27 MB
- Stars: 7
- Watchers: 5
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bgsave
[](https://travis-ci.org/gonet2/bgsave)
Dump records from redis into mongodb.
The records will be written to mongodb ASAP, callers should control the frequency of writing.
The format of the record is defined as :
key(tablname:record_id) -> value(packed with msgpack, optional snappy compression)
# environment variables:
* REDIS_HOST : eg: 127.0.0.1:6379
* MONGODB_URL : eg: mongodb://172.17.42.1/mydb
* NSQD_HOST : eg: http://172.17.42.1:4151
* ENABLE_SNAPPY: eg: true
# install
install gpm, gvp first
$go get -u https://github.com/gonet2/bgsave/
$cd bgsave
$source gvp
$gpm
$go install bgsave
#install with docker
docker build -t bgsave .