Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB backup mechanism #48

Closed
stegben opened this issue Nov 12, 2019 · 5 comments
Closed

DB backup mechanism #48

stegben opened this issue Nov 12, 2019 · 5 comments

Comments

@stegben
Copy link
Contributor

stegben commented Nov 12, 2019

定期做備份,可以等部屬環境搞好再來弄

@stegben
Copy link
Contributor Author

stegben commented Nov 20, 2019

先研究一下 middle2 那邊會做怎麼樣的備援,再來決定我們怎麼做

@aelcenganda aelcenganda added this to the 2.0 milestone Feb 12, 2020
@aelcenganda aelcenganda modified the milestones: 2.0, 1.3 Mar 25, 2020
@aelcenganda
Copy link
Contributor

ronnywang:
目前 disfactory 的 db 所在的主機是有做每日備份,最多留七天,所以假如發生類似意外是有機會救回來的,但是救援動作可能會需要我人工約四到五個小時處理時間

螢幕快照 2020-04-02 下午3 09 46

@stegben
Copy link
Contributor Author

stegben commented Apr 8, 2020

20200408 討論

每天把整份 db 備份下來,存到 google drive 或 rsync 到某個 server。備份保留一段時間即可(兩週到一個月)

@aelcenganda aelcenganda modified the milestones: 1.3, 2.0 May 6, 2020
@aelcenganda aelcenganda added this to To do in Infra Jun 16, 2020
@stegben
Copy link
Contributor Author

stegben commented Jul 8, 2020

2020/07/08 discussion with @yellowsoar

可以在 s3 申請一個空間,寫一個 lambda 來做備份(給一個 ssh key ,bash script 跑 pg_dump),並且掛 CDN 去指到那個 trigger

@aelcenganda
Copy link
Contributor

目前會固定每天備份到 staging 。

2. Infra & Operation automation moved this from To do to Done May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Infra
  
To do
Development

Successfully merging a pull request may close this issue.

2 participants