Skip to main content

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:
  1. Private keys (if running validator) - Critical
  2. Node configuration - High
  3. Blockchain data - Medium (can re-sync)

What to Backup

Must backup - Cannot be recovered:

Private Keys

If you’re running a validator or managing accounts:
Never store private keys on the same server! Use offline storage (encrypted USB, hardware wallet, etc.)

Node Configuration

Backup Strategies

Simple script for on-demand backups:Create /usr/local/bin/backup-fenine.sh:
Make executable:
Run:
Cron-based automatic backups:
Add:
Email notifications:
Efficient backups that only copy changes:
Benefits:
  • First backup: Full copy
  • Subsequent backups: Only changed files
  • Saves disk space with hard links
Store backups on separate server:

Using rsync over SSH

Using rclone (cloud storage)

Install rclone:
Backup to cloud:
Add to cron:
Instant backups using filesystem snapshots:

LVM Snapshots

Btrfs Snapshots

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:
Recovery:

Scenario 3: Lost Node Key

Problem: Node key deleted/corrupted. Recovery:
If no backup exists:

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:
Run monthly:

Disaster Recovery Checklist

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)
Immediate steps:
  • Assess damage scope
  • Notify stakeholders
  • Retrieve latest backups
  • Provision replacement hardware/cloud
  • Begin restoration
  • Document incident
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)
Plan your backup strategy based on acceptable downtime.