feat(deploy): 백업 프리픽스 지원 + cron 등록 - #14
Merged
Merged
Conversation
R2 API 토큰이 jungwoon-private 버킷 단위로 발급돼 있어 전용 백업 버킷을 만들 수 없었다(ListBuckets/CreateBucket 모두 AccessDenied). 미디어 버킷을 그대로 쓰고 backups/ 프리픽스로 나눈다. 나중에 전용 버킷을 만들면 BACKUP_PREFIX 를 비우면 된다. 운영 서버에 걸어둔 것: - 매일 03:00 KST cron (타임존이 UTC 로 되어 있어 Asia/Seoul 로 변경했다. 안 고쳤으면 한국시간 정오에 돌 뻔했다) - logrotate 주간 8회 보관 첫 백업 803KB 를 올렸고 복구 리허설도 마쳤다. 빈 DB 에 pg_restore 로 복원해 행수를 대조했다 — words 3998 · word_days 147 · word_day_items 6200 · listening_sentences 6795 · exams 24 로 운영과 일치한다.
likell1
added a commit
that referenced
this pull request
Aug 20, 2026
feat(deploy): 백업 프리픽스 지원 + cron 등록
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.
R2 토큰이 버킷 단위라 전용 백업 버킷을 만들 수 없어, 미디어 버킷의
backups/프리픽스를 씁니다. 운영 서버에 매일 03:00 KST cron 을 걸었고 복구 리허설로 행수 일치를 확인했습니다.