you can use commit, save/load, import/export for the same thing as VM snapshots
Comment on goodbye plex
CeeBee_Eh@lemmy.world 2 days agoI can backup an entire VM snapshot very quickly and then restore it in a matter of minutes. Everything from the system files, database, Jellyfin version and configs, etc. All easily backed up and restored in an easy to manage bundle.
A container is not as easy to manage in the same way.
pupbiru@aussie.zone 2 days ago
CeeBee_Eh@lemmy.world 2 days ago
It’s not the same. You then need to manage volumes separately from images, or if you’re mounting a host folder for the Jellyfin files then you have to manage those separately via the host.
Container images are supposed to be stateless. So then if you’re only banking up the volumes, then you need to somehow track which Jellyfin version it’s tied to, in case you run into any issues.
A VM is literally all of that but in a much more complete package.
pupbiru@aussie.zone 2 days ago
i’d consider that all a good thing, but i can also see how it’s more work
but they’re supposed to be stateless because it’s easier to manage, upgrade, etc… if you don’t want that, you can just use load/save/commit (or import/export: can’t remember off the top of my head which is which) and ignore volumes: it amounts to the same thing… there’s also buildpack rebase so you can swap out the base container and keep your top level changes for quick version upgrades that are super simple to roll back
CeeBee_Eh@lemmy.world 1 day ago
I’ve never worked with buildpack, so that’s interesting
Oisteink@feddit.nl 2 days ago
How often do you do this?
CeeBee_Eh@lemmy.world 2 days ago
Backups? I have an automatic job running every night.
Oisteink@feddit.nl 1 day ago
Nice. You you restore often?
CeeBee_Eh@lemmy.world 1 day ago
Whenever I screw something up or something goes sideways. Or when I’m migrating from one host to another.
Moonrise2473@feddit.it 2 days ago
How not?
If a lxc container is in a btrfs subvolume or in a zfs dataset (those are created easily like a directory, it’s not a partition), you can do a full 1:1 copy in less than one second via a snapshot, keeping all the system files, database, version and configs
CeeBee_Eh@lemmy.world 1 day ago
Sure, ZFS snapshots are dead simple and fast. But you’d need to ensure that each container and its volumes are created in each respective dataset.
And none of this is implying that it’s hard. The top comment was criticizing OP for using VMs instead of containers. Neither one is better than the other for all use cases.
I have a ton of VMs for various use cases, and some of those VMs are container/Docker hosts. Each tool where it works best.