nalgeon / redka

Redis re-implemented with SQLite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to export .db file and import to another redka

Jianghong-bgcg opened this issue · comments

The problem

Today, I try to start another redka instance (hereafter refer to as target redka) where the data is the same as source redka. Knowing that the internal is sqlite, I tried to copy the all the data files onto the target redka's instance:

# on source host

# command that starts source redka
docker run --rm -d -p 6370:6379 -v ./data:/data my-private-docker-registery/redka:0.4

# command that copies source redka files
cd ./data
cp redka* /tmp/redka*
cd /tmp
chmod 777 redka*
# on target host

# command that scp file from source host to target host
scp my-user@source:/tmp/redka* ./
./redka -h

Sorry I just debugged the thing but I acidentally clicked publish of my draft ticket