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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

How I Backup

115 点作者 twapi大约 1 年前

29 条评论

Aachen大约 1 年前
Two additional suggestions:<p>1. Test your backups. I see no testing procedure described, and although maybe the author&#x27;s scripts have spot checking beyond what is described in the article, code will only ever catch the cases it was programmed to expect.<p>Manual testing does not have to be frequent or extensive, but making sure the backups are still recoverable and complete (take five minutes to spot check some old and new files) every six months helps ensure no silent issues are occurring<p>2. Less importantly: use append-only backups to an independent system. While ransomware for consumers is comparatively rare these days, it would give me peace of mind. The author&#x27;s deposit box mostly fulfils that purpose, but whether it gets filled with bogus data or wiped by the malware is a matter of luck in timing (with the odds heavily in their favor due to the irregular connection of the drive and the existence of another computer that the malware probably isn&#x27;t programmed to expect).<p>Of course, &quot;append only&quot; is a bit of a misnomer because eventually you&#x27;d run out of space, but the system should independently delete old data rather than being able to command it remotely (from the potentially infected system) to wipe anything. Restic has docs with considerations for data deletion in an append-only setup (disclose: I helped write them), which are also relevant if you don&#x27;t use restic because they describe the method more than the specific implementation: <a href="https:&#x2F;&#x2F;restic.readthedocs.io&#x2F;en&#x2F;latest&#x2F;060_forget.html#security-considerations-in-append-only-mode" rel="nofollow">https:&#x2F;&#x2F;restic.readthedocs.io&#x2F;en&#x2F;latest&#x2F;060_forget.html#secu...</a>
jbverschoor大约 1 年前
Doesn’t sound like backing up, but keeping your stuff massively in sync.<p>What happens if you discover something is missing or corrupted after 6 months?
评论 #39522517 未加载
评论 #39522642 未加载
petters大约 1 年前
&gt; here is how I do my backups. It takes me about ten seconds per day and five minutes per month to maintain<p>&gt; rsync everything to each of them, bringing one down to a safe deposit box downtown, and taking out the one that was there from my last visit<p>Sounds like you are underestimating how much time you spend on backups. Sounds good though
评论 #39523618 未加载
TheCapeGreek大约 1 年前
My absolute final resort &quot;solution&quot; for data loss of keepsakes:<p>Accept the impermanence of data, memories and memorabilia.<p>Ideally I&#x27;ll strive to keep that data backed up as long as I can, and will mourn its loss, but mentally I prepare myself that one day I might lose access in some way. Most importantly, that data is also 99% irrelevant to the next generation, maybe save for a handful of photos or videos (&quot;what did grandpa look like?&quot;). So in the grand scheme of things it&#x27;s not like I have to be an epic archivist of my own life.<p>I suppose it helps that this was done for me in the past - toxic family members threw out all my childhood family photos a decade ago.
评论 #39523762 未加载
bambax大约 1 年前
I use a similar, but I think simpler, setup.<p>&quot;Files I use and change every day&quot; are on Dropbox, which gets synced to a NAS.<p>Photo and video files are directly stored on the NAS and don&#x27;t live anywhere else.<p>The NAS is rsynced automatically every day to an external disk (connected via USB) of which there are three copies. One is in a safe at home, the other at my parents&#x27; house. The one in the safe is rotated every week, the one at my parents&#x27; every month.<p>If my house gets robbed or even burns down it&#x27;s likely the disk in the safe will survive and I lose only one week of data. If the house gets completely destroyed or the safe is cracked, then I can turn to the disk at my parents and lose one month.<p>It&#x27;s true that rsync is not a backup. But by default rsync only adds data. Delete is an option one has to turn on. My daily rsync does not have the delete option. I have a different script with delete, that I run manually.<p>The theory was that I would review the delete process with a dry run before committing to it. In practice I don&#x27;t do this and simply run the delete script occasionally, which ruins the purpose. But I guess I could be more careful if I really wanted to.
jopsen大约 1 年前
I&#x27;ve been happy with: <a href="https:&#x2F;&#x2F;kopia.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kopia.io&#x2F;</a><p>Fairly easy to configure, does snapshots to S3 and has a icon in my tray I can watch :)
评论 #39523458 未加载
评论 #39523324 未加载
juangacovas大约 1 年前
Interesting. Just for sharing, for backup on Linux I&#x27;ve been using rsnapshot, restic (which accepts Rclone as interface) and ReaR (Relax and Recover) for full linux recovery; on Windows, commercial Acronis and recently UrBackup. Old good &quot;pathsync&quot; from Cockos also helps on LAN.<p>Everything boils down to your amount of files or GBs when some solution becomes &quot;too slow&quot; doing incrementals and&#x2F;or file processing. My two cents.
评论 #39522495 未加载
michaelt大约 1 年前
<i>&gt; Whenever I turn on one computer, I sync it from the other.<p>&gt; Daily rsync to an encrypted Linux USB stick attached to the desktop.<p>&gt; Daily rsync to an encrypted MacOS USB stick attached to the laptop.<p>&gt; Daily rsync to an encrypted ZFS SSD inside the desktop.<p>&gt; Daily rsync to OpenBSD remote attached storage at vultr.com<p>&gt; [...] I do it a few times a day, especially if I’ve just made or saved something of value. And always right before I shut down the computer, which I do almost any time I step away from it for more than a few minutes.</i><p>Have you ever noticed blog posts rarely go viral if they describe a normal setup, and are much more likely to do so if they describe a really complicated setup?<p>I&#x27;m all for people coming up with needlessly complex homelab setups if they have fun doing so - but sometimes I wonder whether newbies see this sort of thing, and think Linux needs this level of complexity.
评论 #39522875 未加载
评论 #39522718 未加载
评论 #39523155 未加载
lurtbancaster大约 1 年前
Question for rsync users on linux. Does your rsync preserve creation times --crtimes ?<p>I&#x27;m aware ext4&#x2F;3 filesystems don&#x27;t store creation times. But I want to use rsync on Linux to sync files between an NTFS(supports creation times) and a Btrfs partition(also supports creation times) without losing the creation times.<p>Currently rsync just sets the creation time to the modification time on the destination directory. Which is not what I want.<p>When I use `--crtimes` I get a &quot;This rsync does not support --crtimes (-N)&quot; error.<p>Weirdly, just using `cp -a` works. But it doesn&#x27; t have any of the checksumming and differential copy bells and whistles of rsync.<p>How do you rsync on linux while preserving creation times(on supported file systems)?
评论 #39526980 未加载
cranium大约 1 年前
I use Syncthing on my PCs and NAS, and Backblaze to trivially do a 3-2-1 backup strategy.<p>My work directories are synced on all devices. With my NAS up 24&#x2F;7, I can always pick up the last changes when I switch computers. The irreplaceable documents (all my notes, taxes, company accounting,...) are also backed up by the NAS on Backblaze, keeping all versions. I occasionally create a snapshot on Backblaze for those files – should totally automate that but I&#x27;m lazy.<p>I do agree though: it&#x27;s more &quot;syncing stuff between multiple places&quot; than a real backup.
Toutouxc大约 1 年前
I keep my important files on my DIY NAS -- a cheap NUC with two external HDDs (Btrfs in RAID1). Every night at 1am a cron job takes a restic snapshot to a Backblaze bucket. I feel like bang for buck my solution isn&#x27;t half bad. The NUC is also my home server (web, Pi-hole, Home Assistant, ...), so it was already there, the HDDs were cheap and I currently pay less than $3 a month for over 300 GB of data in the bucket.
deepersprout大约 1 年前
I do something similar[1] with rsync --link-dest and hard links, so that I can go back in time if I delete something. OP seems to just have a copy of his actual files, but if he sees a file missing after 2 weeks after deleting it, he has no way of recovering it.<p>[1]<a href="https:&#x2F;&#x2F;31337.it&#x2F;incremental-backups-with-rsync&#x2F;" rel="nofollow">https:&#x2F;&#x2F;31337.it&#x2F;incremental-backups-with-rsync&#x2F;</a>
评论 #39532549 未加载
JonChesterfield大约 1 年前
Everything that matters is checked into fossil. Box hosting that uses zfs. That rules out most failure modes other than gross incompetence, partially mitigated by a periodic backup to external drives.<p>In the before times I put everything in Dropbox. Dropbox synced with an empty directory by mistake and deleted everything. Not going to use Dropbox again.
oulipo大约 1 年前
I&#x27;m using :<p>- Dropbox for &quot;core files&quot; (small subset of files I don&#x27;t want to lose, mostly my notes, papers, etc) - Arq with S3 for backups (do a backup each hour) - An external SDD to do semi-frequent backups (mostly used in case I change laptop to ensure I have a backup of my files, but otherwise I mostly rely on Arq)
评论 #39523362 未加载
eternityforest大约 1 年前
I use Vorta. I have two profiles, one for my home dir, and recently I added one for all dotfiles I would want to keep when setting up a new machine. It&#x27;s only about 5 files but it avoids using yet another tool for dotfiles.
djks422大约 1 年前
Are backup stored to Glacier is my house-burned-down archive for about $5&#x2F;mo. It may cost a lot to get out, but at that point our family pictures and movies are gone anyway, so it would be worth the cost.
matthews2大约 1 年前
Thanks for sharing! I&#x27;m going to go and test my backups now...
1oooqooq大约 1 年前
that&#x27;s a somewhat expensive setup to still do all the work of dealing with dead drives and manually doing replication and dealing with conflicts (I fear the pain of dealing with his 4way daily backup of the same data over desktop&#x2F;laptop&#x2F;2 pen drives)<p>zfs rent = 4+TB drive + $10&#x2F;mo (base 1TB) + $5*3 (extra 3TB) = drive + $25&#x2F;mo<p>hetzner = 5TB $10.9&#x2F;mo<p>vultr = $5&#x2F;mo (probably more)<p>4x ~4TB drives = $800<p>assuming you replace drives every 5yrs: $3,254 or $54.23&#x2F;mo.<p>assuming the drives last 10yr which are common now: $5,708 or $47.56&#x2F;mo.
评论 #39523441 未加载
globular-toast大约 1 年前
Anyone know&#x2F;recommend something like ZFS.rent in Europe?
评论 #39523880 未加载
prmoustache大约 1 年前
rsync for backup is a recipe for disaster if you don&#x27;t realize you just rsynced and overwriten good data with corrupted or ransomwared data.<p>If you want to use rsync, do rsync and snapshots...and those snapshots should automatically made on the remote destination (can be just a daily cron), only accessible read only from the source machine without having any administrative rights to tamper them.
praptak大约 1 年前
Author: describes a simple setup which probably puts him in the top 0.1% of personal users in terms of resilience to data loss.<p>HN: nitpick about potential problems which are present even in some industry grade data loss solutions.
评论 #39523636 未加载
评论 #39522614 未加载
评论 #39522611 未加载
DavidPiper大约 1 年前
Here I was starting to think 2 USB (platter) drives and the occasional rsync -uavPi is too much.<p>All power to the author, that&#x27;s a hell of a set up.
ElDji大约 1 年前
My setup :<p>- servers and laptops (laptops : except &#x2F;home): restic to local minio instance + rclone to B2 storage<p>- &#x2F;home of laptops : kopia to b2 storage
p0w3n3d大约 1 年前
I&#x27;m using rdiff-backup to have versioned copies, however at some point of time trimming of the snapshots is required
aChattuio大约 1 年前
I do a zfs snapshot and than do a sync.<p>I never delete those snapshots because the big items like images don&#x27;t change.
kkfx大约 1 年前
I&#x27;ve read USB <i>sticks</i> and backup in the same phrase, something must be wrong.
评论 #39522383 未加载
评论 #39522789 未加载
评论 #39523216 未加载
评论 #39523370 未加载
jamesgreenleaf大约 1 年前
I&#x27;ve used Backblaze for years and it&#x27;s worth the money. I&#x27;ve only done a full restore from it once after a laptop was bricked and it was seamless. There have been a few times that I needed a recently deleted file and it worked for that too.
agubelu大约 1 年前
Ah yes, HN&#x27;s automatic title editorializing strikes again, removing 33% of the title&#x27;s wordcount and changing it from &quot;click here to see my backup method&quot; to &quot;hey, I do backups&quot;.
naniwaduni大约 1 年前
&gt; I Backup<p>Well, that&#x27;s a fun casualty of the title filter!
评论 #39522398 未加载
评论 #39522342 未加载
评论 #39523590 未加载