ideawu / ssdb

SSDB - A fast NoSQL database, an alternative to Redis
http://ssdb.io/
BSD 3-Clause "New" or "Revised" License
8.19k stars 1.4k forks source link

Live database dump #1364

Closed jurepetrovic closed 4 years ago

jurepetrovic commented 4 years ago

Hello gentlemen,

Is there a way to make a dump of the live database? I would like to do this in a manner not to disturb the running service too much. Something similar to "mongodump"?

Thanks, Jure

tflores commented 4 years ago

Hello, @jurepetrovic .

There is the command ./tools/ssdb-dump ip port output_folder which copies data and meta folders to output_folder. It's ligther than ssdb export command, because when we run export it does as many "gets" as many keys are in SSDB. If SSDB's log is configured to debug level it's easy to verify that.

More information: http://ssdb.io/docs/backup.html

Tiago

jurepetrovic commented 4 years ago

Thanks guys,

appreciate it a million times. (beer) 👍