Knowledge base
  • Goal of knowledge base
  • Linux & core
    • Linux
      • Record SSH session for reporting
      • Compress / Decompress files
      • Colorize logs
      • Cron output & logging
      • Signal
      • Break out and escape SSH session
      • Mount volume permanently
      • Show processes most consuming CPU & MEM
      • Improve and optimize battery life on Linux
      • File ownership & groups in linux
      • Automatic security update/patch on Ubuntu
      • Clean buffers and cached on linux
      • Bash completion on Linux/Mac
    • Core services
      • Nginx reload
      • OpenVPN Split tunneling
      • Nmap commands
    • Hardware
      • CPU Architecture fundamental
  • Database
    • MySQL
      • InnoDB - innodb_file_per_table parameter
      • MySQL - enable slow query log
      • MySQL - export large tables
    • MongoDB
  • Container
    • Docker
      • ADD or COPY in Dockerfile
        • Clean data of docker completely
    • Podman
  • Automation
    • Ansible
      • Output format
  • Build & Deployment
    • Jenkins
      • Jenkins - force exit pipeline when failure
  • Language & Toolset
    • PHP
      • Composer
      • php-redis & php-igbinary
  • Mindset
    • Technical based
      • Writing well
      • Reinvent The Wheel
      • Approach a new system
      • Backup philosophy
      • Mindset for building HA and scalable system
      • GitLab database incident
    • Non-technical based
      • How to read news efficiency?
      • How long should you nap?
      • Assume good faith
  • Reference & learning source
    • Books
      • Sysadmin/SRE
      • Mindsets
      • Software fundamentals
    • English
Powered by GitBook
On this page
  • Mindset
  • The 3-2-1 Rule
  1. Mindset
  2. Technical based

Backup philosophy

Mindset

  • 3-2-1 Backup strategy

  • Restore strategy is more important than backup strategy

  • Testing backup plans would not be a bad idea. If we don't test backups, we don't have them. We must recheck backup/restore plans monthly, quarterly or yearly

The 3-2-1 Rule

  • 3 means: having at least 3 total copies of data

    - local machine
    - external hard drive/removeable disk device
    - cloud storage
  • 2 means: keep the backed-up data on 2 different storage types

    - local machine
    - cloud
  • 1 means: having at least 1 copy offsite

    Even if you have two copies on two separate storage types but both are stored onsite, 
    a local disaster could wipe out both of them. 
    Keep a third copy in an offsite location, like the cloud.
PreviousApproach a new systemNextMindset for building HA and scalable system

Last updated 6 years ago