TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How do you backup your production servers?

1 点作者 agjmills超过 10 年前
We&#x27;re a small web development agency who have around 30 dedicated servers with various numbers of websites on each.<p>All of our source code is in Git, which means that each developer, the servers onto which the code is deployed, and the Git remote all have the full history of the code<p>Our databases are backed up really poorly - a hacky script I wrote a couple of years ago that dumps them to a file, and then they get committed into Git and pushed to the remote. However it&#x27;s very difficult to extract them and can take up to a day depending on the size of the database.<p>Files that a user uploads to a server are not backed up Server configuration files (nginx, apache etc) are not backed up SSL keys&#x2F;certificates&#x2F;other are not backed up<p>I want to back up to the following schedule: Nightly for the last 7 days, then before that, weekly up to 6 months<p>The total amount of disk space we take up on all servers is around 2TB<p>All of the backups need to be backed up to the same place - ideally without a single point of failure - I was thinking something like S3-like storage?

1 comment

l0f超过 10 年前
database: maste-slave<p>uploads: rsync<p>there&#x27;s a ruby gem called backup (<a href="https://meskyanichi.github.io/backup/v4/" rel="nofollow">https:&#x2F;&#x2F;meskyanichi.github.io&#x2F;backup&#x2F;v4&#x2F;</a>) ;)
评论 #8885118 未加载