⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 ICE-3.2 一个开源的中间件
💻
字号:
Freeze online backup demo (Linux/Unix only)===========================================This demo helps you experiment with Berkeley DB's hot backupcapabilities, and shows how to configure Freeze to support hotbackups.The client program is very simple: it creates an Int to Long Freezemap, with 10000 elements. The client uses a transaction to update allthe elements with the current date-time (as a number of millisecondssince the epoch -- 01/01/1970 at 00:00:00 UTC). It also verifies thatthe old values are all the same.This program runs forever: you need to kill it (e.g., with CTRL-C) toterminate it.While the program is running, you can perform a hot backup with thebackup shell script:% ./backup fullPerforms a full backup (both data and log files) in the fulldirectory.% ./backup incrementalPerforms an incremental backup (only log files) in the incrementaldirectory.The backup script uses the dd program as well as the Berkeley DButilities db_archive and db_checkpoint.The backup shell script runs db_archive before copying any file to geta list of unused (old) log files. These files are deleted after thebackup is performed. This is a safe way to perform backups, but otherapproaches are also possible. Please consult the Berkeley DBdocumentation at http://www.sleepycat.com/docs for detailedinformation on Berkeley DB hot backups.Note that the Ice config file (named config) disables the automaticdeletion of old log files:Freeze.DbEnv.backup.OldLogsAutoDelete=0and also sets DbPrivate to 0 to allow db_archive to access the db environment while the client is running:Freeze.DbEnv.backup.DbPrivate=0The db/DB_CONFIG file is used to put the data files and log files indifferent sub-directories, which simplifies archiving.The recover shell script restores either a full backup (the files inthe full directory) or an incremental backup (the files in the fulldirectory and the files in the incremental directory). Do not run thisscript while the client is running.If your latest backup was incremental, you should use 'recover incremental'.Before doing a recover, you can "corrupt" the main database, forexample by removing the data file (db/data/IntLongMap), or add randomcharacters to the latest log file.RPM installation note---------------------If you use a RPM installation of Berkeley DB 4.5.20, you need to installthe db45-utils RPM to get the Berkeley DB utilities (db45_checkpointand db45_archive) used by the backup shell script.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -