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•5h 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•4h 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•3m 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.

The Shape of Things Unseen

https://hollisrobbinsanecdotal.substack.com/p/the-shape-of-things-unseen-review
1•HR01•6m ago•0 comments

EI/LVM: New Models Meet Old

https://hardkorebob.github.io/ei-lvm.html
1•bobrobpr•10m ago•0 comments

Show HN: Empromptu.ai – Agentic AI Building AI Apps

1•anaempromptu•12m ago•0 comments

America Party (AMEP) FEC Form 1

https://docquery.fec.gov/cgi-bin/forms/C00910323/1898441/
1•tingx•14m ago•0 comments

Gen Z, the Useful Idiot Generation

https://www.wsj.com/opinion/the-useful-idiot-generation-z-young-people-politics-cd42f1ee
1•sandwichsphinx•15m ago•0 comments

How Does O3 Guess Latitude from Photos?

https://corinwagen.github.io/public/blog/20250527_latitude.html
1•joecobb•15m ago•0 comments

What is a micro-retirement? Inside the latest Gen Z trend

https://www.fastcompany.com/91357784/what-is-a-micro-retirement-inside-the-latest-gen-z-trend
1•tareqak•16m ago•1 comments

Exception Handling in Rustc_codegen_cranelift

https://tweedegolf.nl/en/blog/157/exception-handling-in-rustc-codegen-cranelift
1•aw1621107•16m ago•0 comments

ZorkLand – Retro Amiga Shooter

https://amiten.itch.io/zorkland
1•doener•16m ago•0 comments

OpenAI 4o Image Generation Guide

https://www.promptingguide.ai/guides/4o-image-generation
2•omarsar•16m ago•0 comments

How Let's Encrypt made the internet safer and HTTPS standard – and free

https://www.zdnet.com/home-and-office/networking/how-lets-encrypt-made-the-internet-safer-and-https-standard-and-free/
5•CrankyBear•17m ago•0 comments

Amiga Forever and C64 Forever 11 Released

https://www.amigaforever.com/news-events/af-11/
1•doener•18m ago•0 comments

Show HN: Cursor's "Tab" Model in the Browser

https://www.tryactions.com/extension
2•killianlucas•22m ago•1 comments

Show HN: An Apple-like computer with a built-in BASIC interpreter in my game

https://reprobate.site?stage=pearintosh
1•delduca•23m ago•0 comments

Southwest Airlines' free bags perk is mostly gone – loyal customers are outraged

https://www.dailydot.com/news/southwest-airlines-policy-updates/
2•Bluestein•25m ago•0 comments

Supabase MCP's Lethal Trifecta

https://simonwillison.net/2025/Jul/6/supabase-mcp-lethal-trifecta/
7•lunw•26m ago•0 comments

Ask HN: How can I make 0,1M dollars?

1•roschdal•30m ago•6 comments

Intel layoffs begin: Chipmaker is cutting many jobs

https://www.oregonlive.com/silicon-forest/2025/07/intel-layoffs-begin-chipmaker-is-cutting-many-thousands-of-jobs.html
5•osnium123•30m ago•0 comments

The National Security Archive

https://nsarchive.gwu.edu/
2•danielovichdk•30m ago•0 comments

Wall Street Builds S&P 500 'No Dividend' Fund in New Tax Dodge

https://finance.yahoo.com/news/wall-street-builds-p-500-150404125.html
5•pinko•31m ago•0 comments

Build Like It's 1996

https://fin.ai/ideas/build-like-its-1996/
2•agilek•31m ago•0 comments

Song for My Grandmother [video]

https://www.youtube.com/watch?v=mWu9sI3017g
1•tech4bueno•34m ago•0 comments

Trump and Congress finalize law that could hurt your Wi-Fi

https://arstechnica.com/tech-policy/2025/07/trump-and-congress-finalize-law-that-could-hurt-your-wi-fi/
6•speckx•36m ago•0 comments

Teens Almost Got Away with Murder. Then Police Found Their Google Searches

https://www.wired.com/story/find-my-iphone-arson-case/
2•raybb•38m ago•0 comments

'Completely unexpected': Antarctic sea ice may be in terminal decline

https://theconversation.com/completely-unexpected-antarctic-sea-ice-may-be-in-terminal-decline-due-to-rising-southern-ocean-salinity-259743
4•CharlesW•40m ago•0 comments

Building a map of the whole history using Wikidata and SQLite

https://github.com/feverzsj/histmap
1•feverzsj•42m ago•0 comments

From Task to Table: How I Got to the Korean Burger

https://medium.com/@chrisveleris/from-task-to-table-how-i-finally-got-to-the-korean-burger-01245a14d491
1•cvicpp123•43m ago•0 comments

Waymo starts robotaxi testing in Philadelphia and NYC

https://techcrunch.com/2025/07/07/waymo-starts-robotaxi-testing-in-philadelphia-and-nyc/
3•mfiguiere•43m ago•0 comments

Apple tries get €500M EU fine tossed

https://www.theregister.com/2025/07/07/apple_appeals_500m_eu_antisteering/
5•rntn•45m ago•0 comments

Exploiting an ORM Injection to Steal Cryptocurrency from an Online Shooter

https://blog.p1.gs/writeup/2025/07/06/Hacking-a-crypto-game/
2•samwcurry•46m ago•0 comments