Skip to content

chore: DB 백업을 최근 7개만 보관(개수 기준)하도록 변경#270

Merged
Develop-KIM merged 1 commit into
mainfrom
chore/NO-ISSUE-backup-retention-main
Jun 14, 2026
Merged

chore: DB 백업을 최근 7개만 보관(개수 기준)하도록 변경#270
Develop-KIM merged 1 commit into
mainfrom
chore/NO-ISSUE-backup-retention-main

Conversation

@Develop-KIM

Copy link
Copy Markdown
Member

목적

PROD DB 백업 보관 정책 변경(최근 7개만 보관)만 main에 단독 반영합니다.

develop에는 이미 머지(#269)됐지만, develop에는 FCM 푸시알림 등 다른 작업이 함께 쌓여 있어 develop→main 전체 배포 대신 백업 스크립트 변경만 main으로 가져옵니다.

변경

deploy/shared/db-backup.sh 한 파일:

  • RETENTION_DAYSRETENTION_COUNT (=7)
  • 로컬: ls -1t 최신순 정렬 후 7개 초과분 삭제
  • Object Storage: 파일명(날짜순) 정렬 후 (전체-7)개 오래된 파일 삭제

main의 기존 db-backup.sh와 비교해 이 변경 외 차이는 없습니다(앱 코드 변경 없음).

배포 영향

  • main 머지 시 prod-cicd 파이프라인이 트리거되어 deploy/*가 서버에 복사됨 → 서버의 db-backup.sh가 7개 보관 버전으로 갱신
  • 앱 코드는 현재 main과 동일(재빌드/재배포만 발생)
  • ⚠️ cron 등록은 별개 — 서버 crontab에 이미 등록돼 있어야 다음 백업부터 적용됨

🤖 Generated with Claude Code

PROD 백업 보관 정책을 날짜 기준(30일) → 최근 7개 보관(개수 기준)으로 변경.
백업 주기와 무관하게 항상 최신 7개만 유지합니다.

- RETENTION_DAYS → RETENTION_COUNT (=7)
- 로컬: ls -1t 최신순 정렬 후 7개 초과분 삭제
- Object Storage: 파일명(날짜순) 정렬 후 (전체-7)개 오래된 파일 삭제

main 에 백업 스크립트 변경만 단독 반영(앱 코드 변경 없음)하기 위한 커밋입니다.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 14, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • develop

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 99d489d3-e5bb-4d7f-8da7-fd3d302b2738

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/NO-ISSUE-backup-retention-main

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Develop-KIM Develop-KIM merged commit 841a237 into main Jun 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant