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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Tell HN: Always Backup Your Data

2 点作者 electricant将近 2 年前
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

simonblack将近 2 年前
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.