Windows NT 4.0 Backup and Recovery Guide
Introduction
A robust backup and recovery strategy is essential for Windows NT Server 4.0 systems. This guide covers backup planning, implementation, recovery procedures, and disaster recovery best practices to ensure business continuity.
Backup Planning
Risk Assessment
- Identify Critical Data ``` Priority 1 - Business Critical:
- Domain SAM database
- User data files
- Database files
- Email stores
Priority 2 - Important: - Application configurations - User profiles - System configurations
Priority 3 - Replaceable: - Operating system files - Application binaries - Temporary files ```
- Recovery Time Objectives (RTO)
- Maximum acceptable downtime
- Per system/service basis
-
Business impact analysis
-
Recovery Point Objectives (RPO)
- Maximum data loss tolerance
- Backup frequency requirements
- Point-in-time recovery needs
Backup Types
- Full Backup
- Complete system backup
- All files regardless of archive bit
- Clears archive bit
-
Baseline for other backups
-
Incremental Backup
- Files changed since last backup
- Clears archive bit
-
Faster but complex restore
-
Differential Backup
- Files changed since last full
- Doesn't clear archive bit
-
Slower backup, easier restore
-
Copy Backup
- Like full but preserves archive bit
- Doesn't interfere with schedule
-
Good for special backups
-
Daily Backup
- Files modified that day
- Doesn't use archive bit
- Supplemental to regular backups
Backup Strategies
Grandfather-Father-Son (GFS)
Weekly Schedule:
Monday: Incremental (Son)
Tuesday: Incremental (Son)
Wednesday: Incremental (Son)
Thursday: Incremental (Son)
Friday: Full (Father)
Monthly: Last Friday Full (Grandfather)
Retention:
- Daily: 1 week
- Weekly: 1 month
- Monthly: 1 year
Tower of Hanoi
Complex rotation maximizing tape life:
Tape 1: Every other day
Tape 2: Every 4th day
Tape 3: Every 8th day
And so on...
Windows NT Backup Utility
Starting NT Backup
Start → Programs → Administrative Tools → Backup
Or run: ntbackup.exe
Backup Operations
- Select Files ``` Drives window: Select drives/folders [X] C:\ [X] D:\Data [ ] D:\Temp
Right-click for options: - Check all subfolders - Uncheck all subfolders ```
- Backup Destination ``` Backup Information: Tape Name: Full Backup 01-15-2024
[ ] Append to tape [X] Replace data on tape
[ ] Restrict access to owner or Administrator ```
- Backup Options ``` Options → Backup
[X] Backup Registry [X] Verify after backup [ ] Hardware compression (if supported)
Backup Type: ( ) Normal (Full) ( ) Copy ( ) Incremental ( ) Differential ( ) Daily ```
Command Line Backup
Automate with NTBACKUP command:
REM Full backup example
ntbackup backup c:\ d:\ /t "Full Backup" /v /b /hc:on
REM Incremental backup
ntbackup backup c:\ d:\ /t "Incremental" /v /b /hc:on /m incremental
Parameters:
/t "name" - Tape name
/v - Verify after backup
/b - Backup registry
/hc:on - Hardware compression
/m type - Backup type
Scheduled Backups
- Using AT Command ```batch REM Schedule daily incremental at 10 PM at 22:00 /every:M,T,W,Th,F cmd /c "c:\scripts\backup_incremental.bat"
REM Schedule weekly full at 6 PM Friday at 18:00 /every:F cmd /c "c:\scripts\backup_full.bat" ```
- Using Task Scheduler (SP4+)
Install Task Scheduler service Create scheduled tasks via GUI More flexible than AT command
Backup Media Management
Tape Management
-
Labeling Convention
Format: TYPE-DATE-SEQUENCE Examples: FULL-20240115-01 INCR-20240116-01 DIFF-20240117-01
-
Tape Rotation ``` Daily Set: 5 tapes (Mon-Fri) Weekly Set: 5 tapes (5 weeks) Monthly Set: 12 tapes (1 year)
Storage: - Onsite: Current week - Offsite: Previous weeks - Secure vault: Monthly tapes ```
- Tape Maintenance
- Clean drive regularly
- Retire tapes after 50-100 uses
- Store in controlled environment
- Test restore capability
Alternative Media
- Network Backup ``` Backup to network share:
- Map network drive
- Select as backup destination
- Ensure adequate bandwidth
-
Secure network path ```
-
Disk-to-Disk Backup ``` Advantages:
- Faster than tape
- Random access
- Easy verification
Implementation: - Dedicated backup drive - External storage arrays - Replicate to remote site ```
System State Backup
Critical System Components
- Registry Backup ``` Included in system state:
- HKEY_LOCAL_MACHINE
- HKEY_USERS
- HKEY_CURRENT_CONFIG
Manual backup: RDISK /S (includes user accounts) Saved to: %SystemRoot%\Repair ```
- Boot Files ``` Critical files:
- NTLDR
- NTDETECT.COM
- BOOT.INI
-
NTBOOTDD.SYS (SCSI) ```
-
Emergency Repair Disk ``` Create/Update ERD:
- Run RDISK
- Update Repair Info
- Create Emergency Repair Disk
- Store in secure location
Contains: - Registry configuration - Security information (/S option) - System configuration ```
Domain Controller Backup
Special Considerations
- SAM Database ``` Location: %SystemRoot%\System32\Config\SAM
Backup requirements: - Stop related services or - Use NT Backup (handles open files) - Include SECURITY and SYSTEM hives ```
- Synchronization Issues ``` PDC Backup:
- Most critical
- Contains master SAM
- Backup during low activity
BDC Backup: - Supplemental protection - Can promote if PDC fails - Sync before backup ```
- Directory Database
Files to backup: %SystemRoot%\NTDS\*.* %SystemRoot%\System32\Config\SAM %SystemRoot%\System32\Config\SECURITY %SystemRoot%\System32\Config\SYSTEM
Application Backup
SQL Server Backup
- Database Backup Types ``` Full Database Backup: BACKUP DATABASE dbname TO TAPE = '\.\Tape0'
Transaction Log Backup: BACKUP LOG dbname TO TAPE = '\.\Tape0'
Differential Backup: BACKUP DATABASE dbname TO TAPE = '\.\Tape0' WITH DIFFERENTIAL ```
- Backup Strategy ``` Daily: Transaction log backups (hourly) Nightly: Full database backup Weekly: Full backup with verify
Always backup: - Master database - MSDB database - User databases ```
Exchange Server Backup
- Online Backup ``` Use Exchange-aware backup software Backs up while services running Includes:
- Information Store
- Directory Service
-
Transaction logs ```
-
Offline Backup ``` Stop Exchange services Copy database files:
- PRIV.EDB
- PUB.EDB
- DIR.EDB
- All log files ```
IIS Backup
Backup components:
1. Metabase (Registry)
2. Website content (files)
3. SSL certificates
4. ISAPI filters/extensions
5. Log files
Registry keys:
HKLM\System\CurrentControlSet\Services\W3SVC
HKLM\System\CurrentControlSet\Services\InetInfo
Recovery Procedures
File/Folder Recovery
- Using NT Backup ```
- Insert backup tape
- Window → Catalog
- Select backup set
- Navigate to files
- Select items to restore
- Restore button
Options: [X] Restore to original location [ ] Restore to alternate location [ ] Restore security ```
- Command Line Restore ```batch REM Restore entire C: drive ntbackup restore /t "Full Backup" c:\ /v
REM Restore specific folder ntbackup restore /t "Full Backup" c:\Data /v ```
System Recovery
Minor Corruption
- Last Known Good ``` During boot, when "Press spacebar NOW":
- Press spacebar
- Select Last Known Good Configuration
-
Restores previous control set ```
-
Emergency Repair ``` Boot from NT installation CD/floppies Press R for Repair Options: [X] Inspect registry files [X] Inspect startup environment [X] Verify Windows NT system files [ ] Inspect boot sector
Insert Emergency Repair Disk ```
Major Failure
- Parallel Installation ```
- Install fresh NT to different folder
- Boot to new installation
- Access and repair original
- Copy registry from backup
-
Fix boot.ini ```
-
Complete Restore ```
- Install NT Server same version/SP
- Install tape device drivers
- Restore full backup
- Restore latest incremental
- Reapply service packs
- Test thoroughly ```
Domain Controller Recovery
PDC Failure
- Promote BDC ``` On selected BDC: Server Manager → Computer → Promote to PDC
Verify: - Domain functionality - User authentication - Replication to other BDCs ```
- Rebuild Failed PDC ```
- Install as BDC
- Sync with new PDC
- Can demote new PDC later ```
Complete Domain Loss
1. Restore PDC from backup
2. Restore computer accounts
3. Some passwords may be old
4. Rejoin workstations if needed
5. Restore trust relationships
Disaster Recovery Planning
Documentation
Essential documentation:
1. Hardware inventory
- Server specifications
- RAID configurations
- Network settings
2. Software inventory
- OS versions and patches
- Application versions
- License keys
3. Configuration details
- IP addresses
- User accounts
- Share permissions
- Service settings
4. Recovery procedures
- Step-by-step guides
- Contact information
- Vendor support
DR Site Preparation
- Hot Site
- Duplicate hardware ready
- Data replicated regularly
-
Immediate failover capability
-
Warm Site
- Hardware available
- Restore from backup needed
-
24-48 hour recovery
-
Cold Site
- Empty facility
- Acquire hardware needed
- 1-2 week recovery
Recovery Testing
-
Test Schedule
Monthly: File restore test Quarterly: Application recovery Annually: Full DR drill
-
Test Procedures ```
- Restore to test server
- Verify data integrity
- Test application function
- Document issues
- Update procedures ```
Backup Security
Physical Security
- Tape Storage
- Fireproof safe onsite
- Offsite secure facility
- Climate controlled
-
Access logging
-
Transport Security
- Bonded courier service
- Encrypted containers
- Chain of custody
- Tracking system
Data Security
- Access Control ``` NT Backup options: [X] Restrict access to owner or Administrator
Limits restore capability Protects sensitive data ```
- Encryption Options
- Third-party backup software
- Hardware encryption
- Encrypted volumes
Monitoring and Maintenance
Backup Verification
- Automated Verification ``` NT Backup: [X] Verify after backup
Adds time but ensures integrity Check logs for errors ```
- Manual Testing
Weekly: Restore random files Monthly: Restore complete folder Quarterly: Full system restore test
Log Management
- Backup Logs ``` Location: %SystemRoot%\Backup.log
Review for: - Completion status - Errors or warnings - Backup size/time - Files skipped ```
- Retention ``` Keep logs for:
- Daily: 1 month
- Weekly: 6 months
- Monthly: 2 years ```
Best Practices Summary
- Planning
- Document everything
- Test recovery procedures
- Train multiple people
-
Review plans quarterly
-
Implementation
- Automate where possible
- Verify all backups
- Maintain offsite copies
-
Monitor completion
-
Media Management
- Label clearly
- Track usage
- Retire old media
-
Secure storage
-
Testing
- Regular restore tests
- Document results
- Update procedures
-
Full DR drills
-
Security
- Encrypt sensitive data
- Control physical access
- Audit restore operations
- Secure transportation
Troubleshooting Backup Issues
Common Problems
- Backup Fails to Start
- Check tape in drive
- Verify service running
- Check permissions
-
Review event logs
-
Files Skipped
- Open files
- Permission denied
- Corrupt files
-
Path too long
-
Verification Errors
- Bad tape media
- Dirty tape heads
- Hardware problems
- Write errors
Recovery Problems
- Cannot Restore Files
- Wrong tape
- Corrupted catalog
- Permission issues
-
Hardware failure
-
System Won't Boot
- Repair with ERD
- Check boot files
- Verify disk configuration
- Last Known Good
Conclusion
Effective backup and recovery is crucial for Windows NT Server 4.0 systems. Regular backups, proper media management, and tested recovery procedures ensure business continuity. Document all procedures, train staff, and conduct regular drills. Remember that backups are only valuable if you can successfully restore from them. Test early and test often.