Peter Mogensen wrote:Hi,
I've been going all documentation I can find (FAQ/bdb-docs..) and I still have some doubt whether I understand this correctly.
All of your questions are answered in the official BDB docs.
http://www.oracle.com/technology/documentation/berkeley-db/db/ref/transapp/archival.html
Well... yes... I suppose so, but as I said, they left me in doubt.
No, "db_recover -c" is for recovering from a catastrophic failure. It's not for creating a backup.
From the BDB doc page above:
>>
To minimize the archival space needed for log files when doing a hot backup, run db_archive to identify those log files which are not in use. Log files which are not in use do not need to be included when creating a hot backup, and you can discard them or move them aside for use with previous backups (whichever is appropriate), before beginning the hot backup.
<<
Could anyone list a step-by-step procedure to create a snapshot for backup and prune the log files from the active environment?
The docs/ref/transapp/archival.html file that SleepyCat bundles in the BerkeleyDB installation provides all the steps.
regards, Peter