3 ms·
At least my stuff is usually just "weekly or so, run `apt-get update; apt-get upgrade` and restart as needed. I also have a script to check for updates and emai
by yjftsjthsd-h 8y ago
At least my stuff is usually just "weekly or so, run `apt-get update; apt-get upgrade` and restart as needed. I also have a script to check for updates and email me to apply them, and a WIP script to automatically determine if reboot is needed. I'm gradually working towards auto-patching, but don't quite feel comfortable with it.
- kop316 8y agoSo one thought to try, I have ZFS root on Debian. I have a daily snapshot run everyday and I have set it to auto-patch. If something were to happen, I can snapshot back and everything is fine.
- cellularmitosis 8y agoDo you run separate partitions for OS vs. user data? (even if not, losing one day of data on a personal stack probably isn't that big of a deal if rollbacks are rare)
- kop316 8y agoYes I do, for that exact reason. If you want to know more I am Happy to share, I just don't want to write a dissertation to fall on deaf ears
- oarsinsync 8y agoI would like to know more! :-)
- kop316 8y agoCertainly! I use FreeNAS as a backend (file server) and Debian as an App server. What I do is mount any data paths via NFS to Freenas. This is primarily for Nextcloud and Plex, so if I want to reinstall it elsewhere, I can do that without needing to back up and it will come up. Both Nextcloud and FreeNAS run ZFS with snapshots, and Debian runs as an auto update and alert be is a restart is needed. FreeNAS also allows for VMs, so I can install VMs on my freeNAS and allow then the same thing (I use regular ext4 for the VMs, as they are mounted on a zblock and get snapshotting). Right now they are all encrypted, so if something does restarts, I have to physically be there to decrypt. I think i can use dropbear SSH to prevent this, but I am okay with this limitation for now. If you have specific questions please let me know.
- kop316 8y agoI should also say, zfs is fairly flexible as well, and you can partition different parts of the filesystem to have different snapshots too. That way you can also revert certain parts of the filesystem without reverting everything.
- cellularmitosis 8y agoAre you familiar with the unattended upgrade packages available on Debian? https://wiki.debian.org/UnattendedUpgrades https://wiki.debian.org/UnattendedUpgrades
- yjftsjthsd-h 8y agoYeah, I looked at that. If memory serves, I didn't end up using it for reasons that amounted to me wanting finer control then it offered and not being convinced that I definitely wanted to install updates automatically. (I've been working under the model where the system checks for updates and if any are found it automatically downloads them and notifies me that they need to be installed)