11
Server hardware backup (lemmy.mindoki.com)

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
[-] BunnyKnuckles@startrek.website 4 points 1 year ago

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

[-] Valmond@lemmy.mindoki.com 1 points 1 year ago

Would that work with, say Lemmy config?

[-] key@lemmy.keychat.org 4 points 1 year ago

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.

[-] Valmond@lemmy.mindoki.com 1 points 1 year ago

Thank you!

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

[-] BunnyKnuckles@startrek.website 2 points 1 year 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.

[-] Valmond@lemmy.mindoki.com 1 points 1 year ago

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

[-] take6056@feddit.nl 2 points 1 year ago* (last edited 1 year ago)

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.

[-] Valmond@lemmy.mindoki.com 1 points 1 year 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.

this post was submitted on 15 Dec 2023
11 points (92.3% liked)

Ask Lemmy

27241 readers
1913 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 !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. 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 info@lemmy.world. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try !politicaldiscussion@lemmy.world or !askusa@discuss.online


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 2 years ago
MODERATORS