Introduction
Proper backup strategies protect against data loss from hardware failures, corruption, or operator errors. This guide covers backup best practices and recovery procedures for Fenine nodes.Backup Priority:
- Private keys (if running validator) - Critical
- Node configuration - High
- Blockchain data - Medium (can re-sync)
What to Backup
- Essential
- Important
- Optional
Backup Strategies
1. Manual Backups
1. Manual Backups
Simple script for on-demand backups:Create Make executable:Run:
/usr/local/bin/backup-fenine.sh:2. Automated Scheduled Backups
2. Automated Scheduled Backups
Cron-based automatic backups:Add:Email notifications:
3. Incremental Backups with rsync
3. Incremental Backups with rsync
Efficient backups that only copy changes:Benefits:
- First backup: Full copy
- Subsequent backups: Only changed files
- Saves disk space with hard links
4. Remote Backups
4. Remote Backups
Recovery Procedures
Scenario 1: Config File Corruption
Problem: Node won’t start due to bad config. Recovery:Scenario 2: Database Corruption
Problem: Chaindata corrupted, node crashes. Symptoms:Scenario 3: Lost Node Key
Problem: Node key deleted/corrupted. Recovery:Scenario 4: Disk Failure
Problem: Complete disk failure. Recovery Steps:1
Provision New Disk
- Install new disk
- Create filesystem:
sudo mkfs.ext4 /dev/sdb1 - Mount:
sudo mount /dev/sdb1 /var/lib/fenine
2
Restore from Backup
3
Verify and Start
4
Monitor Sync
Scenario 5: Complete Server Loss
Problem: Entire server destroyed. Recovery:1
Provision New Server
- Meet hardware requirements
- Install Ubuntu 22.04 LTS
- Update system:
sudo apt update && sudo apt upgrade -y
2
Install Fene-Geth
Follow installation guide:
3
Restore Configuration
4
Restore Data or Re-sync
5
Start Node
Backup Verification
Always verify backups work:Disaster Recovery Checklist
DR Preparedness
DR Preparedness
Pre-disaster preparations:
- Document recovery procedures
- Test backups monthly
- Store backups off-site (different location/cloud)
- Encrypt sensitive backups
- Maintain hardware inventory
- Keep emergency contact list
- Document network configuration
- Test recovery time (RTO/RPO)
During Disaster
During Disaster
Immediate steps:
- Assess damage scope
- Notify stakeholders
- Retrieve latest backups
- Provision replacement hardware/cloud
- Begin restoration
- Document incident
Post-Recovery
Post-Recovery
After restoration:
- Verify all services running
- Check data integrity
- Monitor for issues (24h)
- Update backup procedures
- Conduct post-mortem
- Improve DR plan
Backup Best Practices
3-2-1 Rule
- 3 copies of data
- 2 different media types
- 1 off-site backup
Test Regularly
- Verify backups monthly
- Practice recovery procedures
- Measure restore time
Encrypt Backups
- Encrypt off-site backups
- Use strong passwords
- Secure key storage
Automate Everything
- Scheduled backups
- Automatic verification
- Alert on failures
Backup Storage Options
Example Backup Schedule
Next Steps
Monitoring
Monitor node health
Troubleshooting
Fix common issues
Upgrade Guide
Keep node updated
Hardware Requirements
Storage planning
Recovery Time Objective (RTO):
- Config restore: <5 minutes
- Re-sync from scratch: 3-12 hours
- Full data restore: 30 minutes - 2 hours (depends on backup size)