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.

Tell HN: Always Backup Your Data

2 pointsby electricantalmost 2 years ago
tl;dr Today I accidentally wiped the contents of my &#x2F;var&#x2F;www and have no way to recover it<p>Basically, I was playing with some chroots. After messing one up, I decided to delete it completely so I did &#x27;rm -rf chroot&#x27;. However, I forgot that I had &#x2F;var&#x2F;www also bind mounted to it. So there she goes. Completely wiped it with no backup.<p>Fortunately, it was just tt-rss and some dummy pages. Still it is a pita to setup again.

1 comment

simonblackalmost 2 years ago
The world has only two groups of people: Those who have lost data due to no backups, and those who are yet to lose data due to no backups.<p>Most of us in the first group, try our best to remain out of the second group. Unfortunately some of us in the first group remain committed to also belong to the second group.<p>This is my &#x2F;var&#x2F;www from last night:<p>-rw-r--r-- 1 root root 786297918 Jun 18 01:33 &#x2F;x&#x2F;BAK&#x2F;0951-230618raspberrypi&#x2F;www.raspberrypi.230618.tgz<p>I backup my main system in a (roughly) 15GB snapshot every night. That snapshot has sufficient information to reproduce my main system within about an hour or so to the situation it was in at backup time last night.<p>I also backup my archive disk that holds about 6 TB of &#x27;write once, keep forever&#x27; stuff like music, photos, videos, software, etc. on a daily basis. Bash scripts are your friends.