80 likes | 210 Vues
This document outlines essential database backup methods for PRO-TECH users, focusing on Firebird utilities such as nbackup and gbak. It covers three primary backup strategies: using operating systems, Firebird’s nbackup for incremental backups, and gbak for restoring and defragmenting databases. Key considerations include the handling of locked main database files, maintaining transaction integrity, and scheduling service stops. This guide also discusses media impacts on restore times and emphasizes the importance of regular testing and validation of backups to prevent data corruption.
E N D
2013 PRO-TECH Users’ Group (day 1) • Database Backup • Backup *.fdb files daily • Three methods • Operating system (o/s) • Firebird nbackup utility • Firebird gbak utility • Operating system • Tape, usb, external hard drive, MozyPro, etc. • Database corruption can occur if user is in PRO-TECH and o/s backup occurs
2013 PRO-TECH Users’ Group (day 1) • Database Backup • Firebird nbackup utility • Main database file is locked • .delta file created • All transactions saved in .delta file • Main database file can be copied via o/s • Main database file is unlocked • .delta file transactions applied to main db file • .delta file deleted • Incremental backups available • Can be done while using PRO-TECH
2013 PRO-TECH Users’ Group (day 1) • Database Backup • Firebird utility (gbak) • Can be used to ”defragment” a database. • Backup • Saves database structure • Saves flat data • Restore • Builds database structure • Inserts records • Balances indices
2013 PRO-TECH Users’ Group (day 1) • Database Backup • Options • Operating system • Schedule stop/start of Firebird service before/after backup software • Stop/start of Firebird service • Ends any open transaction • Frees memory • No one can access PRO-TECH while service is stopped • If needed, restore time is determined by media • Database compression possible before backup
2013 PRO-TECH Users’ Group (day 1) • Database Backup • Options • Operating system with Firebird nbackup • Can be used in conjunction with o/s backup • Can be done while database is in use • Does not ”defrag” database
2013 PRO-TECH Users’ Group (day 1) • Database Backup • Options • Firebird backup - gbak • Can be used to create database backup file • Can be done while database is in use • If needed, restore may take several hours • Backup file needs to be restored to test validity • Firebird restore -gbak • At least once every two months to ”defrag” • Balance of Backup time / File size / Restore Time
2013 PRO-TECH Users’ Group (day 1) • Database Backup • Utility • Backup_routine_svc.bat • Interactive or scheduled • Interactive will not delete any file; scheduled will • Options to: • Validate, Mend, Backup, and Restore (1,4) • Backup and Restore only (2,6) • 7zip *.fdb files (3,7)
2013 PRO-TECH Users’ Group (day 1) • Database Backup • Utility • Backup_routine_svc.bat • Some configuration needed