Restore from backup

73 views
Skip to first unread message

Dragan Jotanovic

unread,
Feb 13, 2022, 1:08:48 PM2/13/22
to Kvrocks
Did anyone try to restore kvrocks database from backup created with BGSAVE?

I tried using "ldb" tool from rocksdb, with:
./ldb restore --db=/data/kvrocks/db --backup_dir=/data/kvrocks/backup

but I get:
Failed: NotFound: /data/kvrocks/backup/meta is missing

The backup file contains:
/data/kvrocks$ ls backup/
000021.sst  CURRENT  MANIFEST-000022  OPTIONS-000025

So there is no meta file. Is there a step I'm missing? Is there any other way to restore backup generated with rocksdb?

The LDB tool was built from master branch of https://github.com/facebook/rocksdb

Thanks,
Dragan

Tian Yi Lin, Hulk

unread,
Feb 14, 2022, 8:59:52 PM2/14/22
to Kvrocks
From the Kvrocks 2.0, we use the checkpoint as backup, so for the checkpoint restore, can just replace the dir with backup.
Reply all
Reply to author
Forward
0 new messages