2013 PRO-TECH Users’ Group (day 1)

Download Report

Transcript 2013 PRO-TECH Users’ Group (day 1)

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
1
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
2
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
3
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
4
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
5
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
6
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)
7
2013 PRO-TECH Users’ Group (day
1)
• Database Backup
– Utility
• Backup_routine_svc.bat
– Some configuration needed
8