Examining Berkeley DB files from the CLI

2019-01-31 02:51发布

I have a set of Berkeley DB files on my Linux file system that I'd like to examine.

What useful tools exist for getting a quick overview of the contents? I can write Perl scripts that use BDB modules for examining them, but I'm looking for some CLI utility to be able to take a look inside without having to start writing scripts.

8条回答
戒情不戒烟
2楼-- · 2019-01-31 03:22

Note that the initial answer says to use "db-utils" package, but the example shows the correct "db-util" package. (with no "s")

查看更多
3楼-- · 2019-01-31 03:28

The db_hotbackup utility creates "hot backup" or "hot failover" snapshots of Berkeley DB database environments. Install it with the following

apt-get install db-util

then run following command to take hot backup

db_hotbackup [-cDEguVv] [-d data_dir ...] [-h home] [-l log_dir] [-P password] -b backup_dir

查看更多
登录 后发表回答