Skip to content

A reader for metadata files created by cbbackupmgr

Notifications You must be signed in to change notification settings

cg14823/metareader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MetaReader

MetaReader is a tool to read the contents of snapshot (.snp) and failoverlog (.fol) files generated by Couchbase enterprise backup tool 'cbbackupmgr'. This tool is designed for debugging purposes.

The only dependency is cbflag which can be install using

go get github.com/couchbase/cbflag

Install

Clone the repo and then run go build/install

Usage

To dump the contents of the snapshot file for all vBuckets use the snapshot command

metareader snapshot -p /repo/archive/2019-01-25T10_03_15.064487Z/beer-sample-1da173e4511d0bfa50e47c146dfe340a/data 

To dump the contents of the failoverlog file for all vBuckets use the snapshot command

metareader failoverlog -p /repo/archive/2019-01-25T10_03_15.064487Z/beer-sample-1da173e4511d0bfa50e47c146dfe340a/data 

You can filter vBuckets in both commands by using --filter which takes a comma separated list of vBuckets to display (e.g. 0,1,2,3,4,5), it also will accept ranges (e.g 0-10,30-50), ranges are inclusive.

About

A reader for metadata files created by cbbackupmgr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages