[02:21] good morning [07:52] !ping [07:52] pong! [19:45] Pow [19:45] I have a discussion topic about Ubuntu: [19:45] Say somebody wanted really easy system backups... [19:46] As in, I can migrate between devices with a single click easy [19:46] How would you make that [19:47] Not single-click, but really close: clonezilla. [19:48] and if you like clicking try rescuezilla [19:49] but I prefer the text mode style [19:49] Clonezilla is a live-cd right? Can you make automatic backups with it somehow ? [19:50] no. and a full-backup from a running system is not the best idea anyway [19:51] you should do seperate backups of /home and the rest of the system [19:52] i 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 course [19:52] you 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 needed [19:53] From 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] btrfs support snapshots [19:53] but a snapshot is not a backup [19:54] ravage: can you run that root borg backup while it's running? Or does it need to be done from a live cd [19:54] there are backup tools that use btrfs snapshots for backups [19:55] i backup my / while the system is runnning yes. [19:55] Ok cool [19:55] but i do not run any database server for example on my desktop [19:55] Yeah [19:55] databases dont like to be backuped at runtime [19:55] and as i said that backup only saves files. not partitions or bootloaders [19:56] I'm imagining an experience like with a phone [19:57] that experience is overrated too. so many apps do not get backuped completely [19:57] You 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] It's ok that it's not perfect with apps [19:57] if you just need your files then all you need is /home [19:58] The helpful thing is it restores most of your apps and settings and all of your files [19:58] It's ok that it's not perfect [19:59] if you are ok with some work to setup a backup destination ssh borg is great. restic is an alternative [20:00] https://vorta.borgbase.com/ is a nice GUI for borg [20:01] Ooh I'll check it out [20:01] I use restic with a rest server for my nextcloud backup, but I'm afraid to make it automatic [20:02] I feel like I need to be there just in case something doesn't go right [20:02] i switched to the AIO docker image of nextcloud [20:02] im not a big docker fan [20:02] but it just works [20:02] and does borg backups automatically [20:02] I would do that if I had a stronger server than a rpi4 [20:03] but if you just add a mysql and possibily postgres dump before you start your borg or restic backup you should be fine [20:03] i would set that up to a remote storage in a cron [20:03] I'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 well [20:04] never tried that on the pi [20:04] i tested the nextcloud snap [20:04] was not too bad 🙂 [20:04] I have a nice script that automatically 1. Puts it in maintenance mode [20:04] I use the nextcloud snap in production. Works great. [20:05] 2. Dumps mariadb. 3. Backs up the database, nextcloud directory, and data. 4. Takes it out of maintenance mode [20:05] with nexcloud everything that handles updates and backups for me is great [20:05] it always got messy for me on bigger system updates [20:06] But it doesn't have any kind of error handling or logging so I can't just run it in cron [20:06] you could check the timestamps of that backup and some rough size checks maybe [20:06] and send you a notification if something looks off [20:07] or you look at that script and extend it [20:07] I don't think I'm clever enough to write that but it's a nice idea [20:10] But 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:11] I'll look at the vorta software to see if it can do that [23:11] Pika also uses borg [23:17] The Borg version of resorting from backup is to copy the home directory to the new system [23:17] But 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 start [23:18] Not hard for a sysadmin or power user but miles away from the ez backup restore of phones [23:35] This 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] something similar in 17 years... [23:36] if 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)