{"canonical_url":"https://engineer.company/ja/portfolio/automated-100-critical-data-backups-using-barman/","content_markdown":"# Barmanで重要データのバックアップ100件を自動化\n\nBarman、Google Cloud、Bash、Pythonで重要データのバックアップ100件を自動化し、データベース間のデータ整合性を確保した。\n\n2022 – 2024\n\n**状況.** 重要なGISデータ、アプリケーション、データベースが複数システムに散らばり、バックアップは不統一で、一部は手動だった。データに依存する製品にとって放置できない危険であり、実際に必要になった日は、不完全なバックアップに初めて気づくには最悪の時機だった。\n\n**課題.** 重要なデータをすべて復旧できるようにすることが課題だった。そのため、環境全体を対象とした、包括的で検証済みのバックアップを自動化する必要があり、とりわけ検証を重視した。\n\n**行動.** バックアップの仕組み全体を構築した。重要なデータのバックアップ100件を自動化し、PostgreSQLにはBarman、遠隔コピーの保管にはGoogle Cloudを用い、全体の制御と検証をBash・Pythonで行った。取得しても確認しないバックアップは、復旧手段というより期待にすぎない。最新性を保つ保持方針と、存在するだけでなく正常であることを確かめる整合性検査を設けた。\n\n**結果.** 全データベースのバックアップが自動化され、検証可能となり、復旧可能性は想定から実証済みの事実へ変わった。大きな運用リスクが、実際に頼れる復旧経路へ置き換わった。設定しただけでなく、確かめたことが違いだった。\n\n---\n\n- 役割: DevOpsエンジニア\n- カテゴリー: [データベース](https://engineer.company/ja/categories/databases/), [PostgreSQL](https://engineer.company/ja/categories/postgresql/), [DevOps](https://engineer.company/ja/categories/devops/), [インフラ](https://engineer.company/ja/categories/infrastructure/), [クラウド](https://engineer.company/ja/categories/cloud/), [自動化・CI/CD](https://engineer.company/ja/categories/automation/), [信頼性・バックアップ](https://engineer.company/ja/categories/reliability/), [Python](https://engineer.company/ja/categories/python/)\n- サービス: [データベース管理（DBA）](https://engineer.company/ja/services/database-administration/), [DevOps・CI/CD自動化](https://engineer.company/ja/services/devops-cicd/), [バックアップ・災害復旧](https://engineer.company/ja/services/backup-recovery/)\n\n\u003chttps://engineer.company/ja/portfolio/automated-100-critical-data-backups-using-barman/\u003e\n","date_modified":"2026-11-12T05:34:23Z","description":"Barman、Google Cloud、Bash、Pythonで重要なデータベースバックアップ100件を自動化し、データを復旧できることを実際に検証した。","formats":{"gemtext":"https://engineer.company/ja/portfolio/automated-100-critical-data-backups-using-barman/index.gmi","gopher":"https://engineer.company/ja/portfolio/automated-100-critical-data-backups-using-barman/gophermap","html":"https://engineer.company/ja/portfolio/automated-100-critical-data-backups-using-barman/","json":"https://engineer.company/ja/portfolio/automated-100-critical-data-backups-using-barman/index.json","markdown":"https://engineer.company/ja/portfolio/automated-100-critical-data-backups-using-barman/index.md","pdf":"https://engineer.company/ja/portfolio/automated-100-critical-data-backups-using-barman/index.pdf"},"kind":"page","language":"ja","title":"Barmanで重要データのバックアップ100件を自動化","url":"https://engineer.company/ja/portfolio/automated-100-critical-data-backups-using-barman/","version":1}