TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How do you backup your production servers?

1 pointsby agjmillsover 10 years ago
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

l0fover 10 years ago
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 未加载