frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ask HN: How do you deal with data backups in servers?

4•atomicnature•11h ago
Recently, we lost some data during migrating our servers due to a missing backup.

We thought we had something backed up - but was not really the case.

We have multiple databases and apps - each having its own data store often.

How do you usually deal with server backups? What has worked for you and what has not?

Comments

Bender•10h ago
For me both professionally and personally having a manifest of all non-OS and non git repo committed data e.g. code artifacts that are restored by code deployment clearly defines what needs to be backed up. This must be tested routinely by restoring only what exists in the role based manifest along with the role based procedure and doing QA testing on the restored nodes. Procedures will vary by role but there must be a manifest that defines what directories contain live data. Each role must have its own clearly defined procedure for data restoration and the role must be defined in the manifest. So for example DBA's will be responsible for writing their role based procedure for primary and secondary databases. Ideally role based data should be neatly contained to a corporate specific directory structure meaning that every role could in theory be restored to a single node without overlapping ports for stand-alone QA testing on a developer laptop.

Personally I also like to have a local snapshot using rsnapshot of live/ephemeral data so that I can quickly get a node back in service assuming the backup volume only accessible by root has not been tainted or tampered with. OSSEC is one of the many tools that can checksum data and alert on tampering. AuditD with well written rules is also useful for real time monitoring. Anti-tampering is an entire topic by itself.

I like to keep these concepts outside of configuration management tools but design them so they can be easily pulled into said tools. This makes replacing a tool much easier. So if for example ones company desires switching from Chef to Ansible for whatever reasons the process is already a well known-known allowing a quick semi-automated migration.

codegeek•6h ago
Some rules for backups that you must follow:

1. Backups must be taken offsite on a separate server (obvious but surprisingly some people miss this)

2. Backups must be tested frequently. If you cannot test a backup, you don't have a backup.

3. Frequency depends on your criticality of data, your contract/SLA with your customer etc. Ideally, you should be able to have Point-in-time-Restore (PTR) going back to certain number of hours/days/weeks

4. Make sure to have notifications for backup failures. If a backup failed, you must be notified to correct it manually.

5. Bonus: Have a backup reconciliation script that runs additionally to recon all backups for a certain period.

penis123429•5m ago
google for "3-2-1 backup rule"

should be easy

N8n AI Workflows – 3,400 Workflows and an LLM Prototype

4•sayedev•3h ago•0 comments

Ask HN: How did Soham Parekh get so many jobs?

287•jshchnz•5d ago•392 comments

Ask HN: What's the verdict on GPT wrapper companies these days?

8•NewUser76312•5h ago•5 comments

Ask HN: Any resources for finding non-smart appliances?

138•everyone•15h ago•108 comments

Ask HN: How is the tech scene in LA?

11•asdev•1d ago•13 comments

Ask HN: What inspires you to persevere through adversity?

9•justanything•7h ago•7 comments

Ask HN: What happened to W3C's PROV initiative to add provenance to the Web?

3•azhenley•7h ago•0 comments

Ask HN: Brick and Mortar Dev Agency

2•takklz•8h ago•1 comments

Which email clients work well with keyboard shortcuts?

3•tenzo•8h ago•1 comments

Ask HN: How do you deal with data backups in servers?

4•atomicnature•11h ago•3 comments

AI Power Internal Tools

4•DeonRob•4h ago•1 comments

EVM-UI – visual tool to interact with EVM-based smart contracts

21•magnusgraviti•14h ago•8 comments

Ask HN: What Are You Working On? (June 2025)

439•david927•1w ago•1382 comments

Ask HN: What's the greatest piece of non-dogfooded software?

4•nathancspencer•16h ago•7 comments

Ask HN: Worth leaving position over push to adopt vibe coding?

74•NotAnOtter•3d ago•88 comments

Ask HN: Freelancer? Seeking freelancer? (July 2025)

84•whoishiring•6d ago•207 comments

Ask HN: Advice for Starting a Hacker Space?

34•pkdpic•2d ago•36 comments

Ask HN: Who is hiring? (July 2025)

270•whoishiring•6d ago•400 comments

Paid for Claude Code; can't even sign up because "capacity"

6•okincilleb•4h ago•0 comments

Proposal: GUI-first, text-based mechanical CAD inspired by software engineering

5•thinkmachyx•2d ago•5 comments

Ask HN: Who wants to be hired? (July 2025)

129•whoishiring•6d ago•374 comments

Ask HN: What's the 2025 stack for a self-hosted photo library with local AI?

225•jamesxv7•1w ago•120 comments

Ask HN: How do I buy a typewriter?

6•indus•1d ago•13 comments

mTLS vs. HTTP Message Signatures: Tradeoffs in Securing HTTP Requests

2•getvictor•1d ago•3 comments

Ask HN: How many communities HN it devs in C language?

7•FerkiHN•2d ago•13 comments

Ask HN: What old or outdated software have you never found a replacement for?

32•prisenco•1d ago•52 comments

Ask HN: How to generate product docs E2E?

2•sarabande•1d ago•1 comments

ARZY-G: A token born from AI-validated usefulness (not mined, not bought)

3•arzykul•1d ago•0 comments

Why did not numpy copy the J rank concept?

14•jrank•2d ago•6 comments

CellularLab – A Modern Android iPerf3 App with TCP/UDP Testing and AI Analysis

2•abhi5h3k•1d ago•0 comments