/srv/irclogs.ubuntu.com/2024/06/28/#ubuntu-discuss.txt

lotuspsychj3good morning02:21
Bashing-om!ping07:52
ubottupong!07:52
semPow19:45
semI have a discussion topic about Ubuntu:19:45
semSay somebody wanted really easy system backups...19:45
semAs in, I can migrate between devices with a single click easy19:46
semHow would you make that19:46
EickmeyerNot single-click, but really close: clonezilla.19:47
ravageand if you like clicking try rescuezilla19:48
ravagebut I prefer the text mode style19:49
semClonezilla is a live-cd right? Can you make automatic backups with it somehow ?19:49
ravageno. and a full-backup from a running system is not the best idea anyway19:50
ravageyou should do seperate backups of /home and the rest of the system19:51
ravagei use borg backup for my home backups and a seprate one for the rest. so / except home. that usually is enough to restore the system to a previous state. but does not save a bootable state of course19:52
ravageyou should have a one-time full backup with clonezilla for that. and then you can always restore filesystem level backups on top of that when needed19:52
semFrom a user experience perspective, my goal is the experience of completely automated backups, but downtime is ok if necessary. Is that possible with btrfs?19:53
ravagebtrfs support snapshots19:53
ravagebut a snapshot is not a backup19:53
semravage: can you run that root borg backup while it's running? Or does it need to be done from a live cd19:54
ravagethere are backup tools that use btrfs snapshots for backups19:54
ravagei backup my / while the system is runnning yes.19:55
semOk cool19:55
ravagebut i do not run any database server for example on my desktop19:55
semYeah19:55
ravagedatabases dont like to be backuped at runtime19:55
ravageand as i said that backup only saves files. not partitions or bootloaders19:55
semI'm imagining an experience like with a phone19:56
ravagethat experience is overrated too. so many apps do not get backuped completely19:57
semYou get the new phone, and at some point you say "restore from backup" and it just fetches (most of) your files and apps from a backup 19:57
semIt's ok that it's not perfect with apps19:57
ravageif you just need your files then all you need is /home19:57
semThe helpful thing is it restores most of your apps and settings and all of your files 19:58
semIt's ok that it's not perfect19:58
ravageif you are ok with some work to setup a backup destination ssh borg is great. restic is an alternative19:59
ravagehttps://vorta.borgbase.com/ is a nice GUI for borg20:00
semOoh I'll check it out20:01
semI use restic with a rest server for my nextcloud backup, but I'm afraid to make it automatic20:01
semI feel like I need to be there just in case something doesn't go right20:02
ravagei switched to the AIO docker image of nextcloud20:02
ravageim not a big docker fan20:02
ravagebut it just works20:02
ravageand does borg backups automatically20:02
semI would do that if I had a stronger server than a rpi420:02
ravagebut if you just add a mysql and possibily postgres dump before you start your borg or restic backup you should be fine20:03
ravagei would set that up to a remote storage in a cron20:03
semI'm using nextcloudpi which has some kind of backup built in, but I don't think it uses de-duplication so I use restic on that as well20:03
ravagenever tried that on the pi20:04
ravagei tested the nextcloud snap20:04
ravagewas not too bad 🙂20:04
semI have a nice script that automatically 1. Puts it in maintenance mode20:04
EickmeyerI use the nextcloud snap in production. Works great.20:04
sem2. Dumps mariadb. 3. Backs up the database, nextcloud directory, and data. 4. Takes it out of maintenance mode20:05
ravagewith nexcloud everything that handles updates and backups for me is great20:05
ravageit always got messy for me on bigger system updates20:05
semBut it doesn't have any kind of error handling or logging so I can't just run it in cron20:06
ravageyou could check the timestamps of that backup and some rough size checks maybe20:06
ravageand send you a notification if something looks off20:06
ravageor you look at that script and extend it20:07
semI don't think I'm clever enough to write that but it's a nice idea20:07
semBut I'm about to replace an old family computer with a raspberry pi, and hoping to set up a backup system where it backs up over the LAN automatically, and it is easy to test the restore function.20:10
semI'll look at the vorta software to see if it can do that20:11
semPika also uses borg23:11
semThe Borg version of resorting from backup is to copy the home directory to the new system23:17
semBut this still isn't great for ux because the user has to know how to create a user with that name, chown all the files for a start23:17
semNot hard for a sysadmin or power user but miles away from the ez backup restore of phones23:18
semThis quote from YouTube: TimeMachine is one of the most important reasons I still use OSX/MacOS. It has saved me twice, once restoring from to a completely replaced drive. Not just my files but my full OS including all settings for printers, wifi and everything else. It is simply brilliant, I really don't understand why Windows and Linux don't have something similar. It is from 2007, so it completely baffles me that no other OS has been able to create 23:35
semsomething similar in 17 years...23:35
daftykinsif you NFS mounted a user's /home from a NAS, the Pi itself would be irrelevant and you could just keep overwriting the microSD card to recover (aside from US updates)23:36

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!