chore(governance): consolidate roadmap and backup policies
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
데이터베이스 아카이빙 도구
|
||||
Database archive helper (migration/archive only).
|
||||
|
||||
레거시/테스트 DB 파일을 archive_db/로 이동하고 manifest 생성
|
||||
This tool exists to copy legacy or transient DB files into archive_db/ and
|
||||
generate a manifest. It is not an operational source-of-truth manager.
|
||||
"""
|
||||
|
||||
import shutil
|
||||
@@ -12,7 +13,7 @@ from datetime import datetime
|
||||
from typing import Dict, List
|
||||
|
||||
class DatabaseArchiver:
|
||||
"""데이터베이스 아카이빙"""
|
||||
"""Legacy DB archive helper."""
|
||||
|
||||
def __init__(self):
|
||||
self.root = Path(".")
|
||||
@@ -38,7 +39,7 @@ class DatabaseArchiver:
|
||||
print(f"[OK] Created: {d.relative_to(self.root)}")
|
||||
|
||||
def archive_outputs_kis_data_collection(self) -> None:
|
||||
"""outputs/kis_data_collection/ 아카이빙"""
|
||||
"""Archive legacy outputs/kis_data_collection/ contents."""
|
||||
src = self.root / "outputs" / "kis_data_collection"
|
||||
if not src.exists():
|
||||
print(f"[SKIP] {src.relative_to(self.root)} not found")
|
||||
@@ -61,7 +62,7 @@ class DatabaseArchiver:
|
||||
self.results["errors"].append(str(e))
|
||||
|
||||
def archive_outputs_snapshot_admin(self) -> None:
|
||||
"""outputs/snapshot_admin/ 의 smoke*.db 아카이빙"""
|
||||
"""Archive legacy outputs/snapshot_admin/ smoke*.db files."""
|
||||
src_dir = self.root / "outputs" / "snapshot_admin"
|
||||
if not src_dir.exists():
|
||||
print(f"[SKIP] {src_dir.relative_to(self.root)} not found")
|
||||
@@ -93,7 +94,7 @@ class DatabaseArchiver:
|
||||
self.results["errors"].append(str(e))
|
||||
|
||||
def archive_temp_files(self) -> None:
|
||||
"""Temp/ 의 테스트 DB 파일들 아카이빙"""
|
||||
"""Archive transient Temp/ test DB files."""
|
||||
temp_dir = self.root / "Temp"
|
||||
if not temp_dir.exists():
|
||||
print(f"[SKIP] {temp_dir.relative_to(self.root)} not found")
|
||||
@@ -134,7 +135,7 @@ class DatabaseArchiver:
|
||||
print(f"[SKIP] No test DB files found in {temp_dir.relative_to(self.root)}")
|
||||
|
||||
def create_manifest(self) -> None:
|
||||
"""manifest.json 생성"""
|
||||
"""Create archive manifest.json."""
|
||||
manifest = {
|
||||
"archive_date": self.timestamp,
|
||||
"created_at": datetime.now().isoformat(),
|
||||
|
||||
Reference in New Issue
Block a user