bluegreencity-ki

Workstation Backup Strategy

Overview

This document describes the backup strategy for the BlueGreenCity-KI workstation to ensure data safety and business continuity.

Primary Backup: External Hard Drive

Hardware

Backup Method

Backup Process

  1. Create PostGIS database dump (see Database Export below)
  2. Connect Seagate Expansion 12TB drive to workstation
  3. Open Control Panel → System and Security → Backup and Restore (Windows 7)
  4. Click “Back up now” to start the backup process
  5. Wait for backup completion (verify success message)
  6. Safely eject the external drive
  7. Disconnect and store the drive in a secure location

Important: The drive remains disconnected between backups to protect against:

Backup Frequency

Secondary Backups

Seafile Cloud Sync

GitHub Version Control

Note: Git does not backup large data files (climate data, derived datasets). These are covered by:

Backup Coverage

Data Type External Drive Seafile GitHub
System image ✅ ❌ ❌
Source code ✅ ✅ ✅
Documentation ✅ ✅ ✅
Configuration files ✅ ✅ ✅
Climate data (NetCDF) ✅ ✅ ❌
Derived datasets ✅ ✅ ❌
Database (PostGIS) ✅ ✅ ❌
Database dumps (SQL) ✅ ✅ ❌
Development tools ✅ ❌ ❌

Recovery Scenarios

Full System Failure

  1. Restore system image from external drive using Windows Recovery
  2. Reconnect Seafile workspace
  3. Clone GitHub repository if needed
  4. Verify PostGIS database integrity

Partial Data Loss

  1. Restore specific files from external drive backup
  2. Use Seafile file history for recent changes
  3. Use Git history for code recovery

Ransomware Attack

  1. Disconnect all drives immediately
  2. Do NOT connect external backup drive to infected system
  3. Clean system or reinstall OS
  4. Restore from external drive on clean system
  5. Resync Seafile and GitHub

Backup Verification

Monthly Checklist

Backup Test (Quarterly)

Database Backup

Database Export

Monthly SQL Dumps

PostGIS database dumps are created monthly as part of the backup routine.

Export frequency: Monthly (at the beginning of each month, before external backup)

Export location: data/backups/postgis/YYYY-MM/

Included in:

Database Export Process

  1. Run database backup script:
    cd scripts
    .\backup_postgis.ps1
    
  2. Verify dump files created in data/backups/postgis/YYYY-MM/:
    • bgcki_backup_YYYYMMDD_HHMMSS.backup (custom/compressed format, recommended)
    • bgcki_backup_YYYYMMDD_HHMMSS.sql (plain SQL, archival)
  3. Dumps are automatically synced via Seafile
  4. External drive backup will include the dumps folder

Database Backup Tools

For detailed information on database backup and restore: