chore: DB 백업을 최근 7개만 보관(개수 기준)하도록 변경#270
Merged
Merged
Conversation
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>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
목적
PROD DB 백업 보관 정책 변경(최근 7개만 보관)만 main에 단독 반영합니다.
develop에는 이미 머지(#269)됐지만, develop에는 FCM 푸시알림 등 다른 작업이 함께 쌓여 있어 develop→main 전체 배포 대신 백업 스크립트 변경만 main으로 가져옵니다.
변경
deploy/shared/db-backup.sh한 파일:RETENTION_DAYS→RETENTION_COUNT(=7)ls -1t최신순 정렬 후 7개 초과분 삭제(전체-7)개 오래된 파일 삭제배포 영향
deploy/*가 서버에 복사됨 → 서버의db-backup.sh가 7개 보관 버전으로 갱신🤖 Generated with Claude Code