logoalt Hacker News

dbdr • today at 5:51 AM • 6 replies • view on HN

    The novice said: "I will save my working files, but not my system and application files, as they can be always be reinstalled from their distribution disks."
    The master made no reply.
    The next day, the novice's disk crashed. Three days later, the novice was still reinstalling software.
If that's your situation, it might be worth backing up applications. However, there are better solutions that make this irrelevant. For instance, using NixOS, you can literally back up a single text file describing your system setup, and you can recreate the system from it automatically in minutes, guaranteed to be bit for bit identical.

Replies

orbital-decay • today at 11:03 AM

If your NixOS setup is not of hello-world kind, you typically have sops in it (or another secret management tool) and want to backup your age keys as well. They're necessarily separated from the main config tree so they don't end up leaking to the globally accessible nix store, and in the most typical case they're located in a 600 file outside the git repo. Forgetting to back it up is a classic NixOS gotcha and also a generalized version of this koan.

CJefferson • today at 7:08 AM

In my experience that works in box like 80% of the time. Which is great! But a backup is great in case it doesn’t.

If you are wondering ‘How are you getting that much failure’, it’s because I like to freeze older versions and they often decay for one reason or another (can’t get files for example)

gnull • today at 7:10 AM

It's not guaranteed to be bit identical (the why of it is a can of worms), but it's identical enough for all practical purposes.

➕ show 1 reply
avinoth • today at 9:45 AM

Is it possible to do that through Veracity? I don't want to use a non-Veracity based solution when Veracity already supports it.

cyberax • today at 9:45 AM

I typically use restores from backups for my personal computer as opportunities to clean things up.

➕ show 1 reply
drybjed • today at 9:16 AM

Tell that to MinIO users, lol.