this post was submitted on 15 Dec 2023
7 points (88.9% liked)

Ask Lemmy

25987 readers
1788 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either [email protected] or [email protected]. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email [email protected]. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 1 year ago
MODERATORS
 

Hello!

This question is not about backing up your data; like git, photos & videos etc.

I have a Lemmy server running Linux Mint and I wonder if there could be a way to backup like the OS data (and installed packages) so when the mobo fries (for example) I can just back it up into a spare server (installing Mint)?

Obviously the premise is that I can backup that important stuff correctly.

I'm asking because I'm a Linux noob and was confronted with the Mint backups and rollbacks. Very smooth BTW, for a virgin system anyways. Also because I hate installing and configure stuff (like Lemmy docker + nginx) and would love knowing the downtime would be minimal.

So sort of having a hardware backup.

top 8 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 8 months ago* (last edited 8 months ago) (1 children)

As an alternative approach you can look into ansible. As opposed to making a system backup you can define your system configuration as code that you can redeploy with it.

[–] [email protected] 1 points 8 months ago

Yeah but I had a hard time setting things up manually (docker), so port that to ansible would be quite the job I guess (especially nginx), and I'm toying with the idea to compile Lemmy from scratch so eventually I could help one day.

[–] [email protected] 0 points 8 months ago (2 children)

Just toss your drives into the new machine. Any reconfiguring for the new hardware would be pretty minimal with Mint.

[–] [email protected] 1 points 8 months ago

I'd probably try that out one day, with a copy.

[–] [email protected] 0 points 8 months ago (2 children)

Would that work with, say Lemmy config?

[–] [email protected] 3 points 8 months ago (1 children)

It'd work for everything, data lives in your storage devices, not the motherboard.

Barring UEFI/bios config issues or hardware incompatibility you just swap hardware and boot up exact same as before.

You might then need to make small tweaks if things aren't setup quite ideally. For instance if you have lemmy binding to a specific IP rather than 0.0.0.0 and you use dhcp reservations then you might need to adjust that IP in config. Or if you don't have fstab using uuid then your mounts might be messed up. But that stuff can all be avoided and they're minor to fix.

[–] [email protected] 1 points 8 months ago

Thank you!

I'll play around with it, cloning a disc shouldn't be that hard :-)

[–] [email protected] 1 points 8 months ago

Never run a lemmy server but I can't think of anything offhand that would change lemmy configs. Honestly, IDK. You'll likely have to reconfigure your network card but that would take all of 30 seconds.