There’s a particular, sinking feeling that each and every Plex person is aware of in detail. You log into your server, in a position to unwind together with your meticulously curated media library, and you might be greeted no longer via the acquainted grid of film posters, however via a sterile orange display. The database is corrupted and the moderately hand-picked collections you spent weeks construction have vanished into the virtual ether.
Plex is a fantastic piece of tool, however its Achilles’ heel has all the time been the fragility of its underlying database and configuration recordsdata. We spend numerous hours construction redundant garage arrays for our media recordsdata, making sure no longer a unmarried Linux ISO is misplaced, whilst blindly neglecting the one maximum irreplaceable part of all the stack: the Plex software knowledge itself. That is the place Proxmox steps in with VM snapshot, an answer hiding in undeniable sight that almost all of the neighborhood has but to undertake for this particular use case.
What you in truth lose when Plex breaks
There’s a basic false impression that governs how the general public manner their house media backups. The obvious factor is to offer protection to the terabytes, the 4K remuxes, and the difficult to understand international motion pictures, however ask your self truthfully what’s in point of fact irreplaceable in a well-configured computerized media stack?

Your Plex server does not want 70TB: Why hoarding 4K remuxes is an enormous garage entice
Prevent losing Plex garage on those 3 novice errors
In an *arr stack, usually your media recordsdata don’t seem to be valuable distinctive artifacts. Given a running configuration and an web connection, your *arr stack can methodically and mechanically re-acquire each and every unmarried media dossier you may have ever owned. It received’t be speedy, however this is a roughly totally computerized procedure that calls for 0 ingenious human enter as soon as configured.
What the *arr stack can’t obtain is your metadata. It can’t redownload the years of watch historical past or the customized poster you manually decided on for the reason that default one was once poorly framed. Additionally, it can’t redownload the hand-tweaked assortment laws that crew James Bond motion pictures in chronological order somewhat than alphabetically. This knowledge lives within the Plex software knowledge listing, essentially in its SQLite database.
When that database corrupts, and it’s going to, in the end, as a result of SQLite and gear outages are herbal enemies, you lose one thing that no quantity of gigabit web can get better.
The Proxmox snapshot
Some extent-in-time state system
A few of you, particularly Docker customers, could also be fast to indicate that you’ve got mapped the /config listing to a chronic quantity. That works for easy file-level recovery, assuming you might be working nightly tarball jobs, however a file-level replica of a working database is a recreation of Russian roulette. For those who replica an SQLite database whilst it has a write lock in development, your “backup” is a corruption ready to occur. The one blank approach to again up it’s to forestall the database engine, replica the dossier, and restart it. Manually preventing Plex for part an hour each and every night time isn’t one thing the general public do and isn’t sensible. That is the place a Proxmox VM snapshot is a essentially other class of backup because it operates no longer on the dossier point, however on the block point and the reminiscence state point.
Whilst you cause a Proxmox snapshot of a working digital system, it pauses all write operations, flushes the filesystem buffers to disk, and captures the precise state of each and every unmarried bit at the digital disk at that nanosecond. It additionally captures the state of the RAM after which unpauses the VM. This complete procedure takes not up to a 2d and repair blip is regularly so minimum {that a} steady ping may no longer even drop a unmarried packet.
This will give you a completely constant, crash-consistent replica of all the digital disk and reminiscence. If Plex was once working, the snapshot accommodates a picture of that SQLite database precisely because it existed, identified via the database engine, no longer mid-transaction.
Rolling Again a Damaged Plex Replace in Seconds
The repair that seems like time shuttle
Here’s the “it simply works” magic that the general public don’t admire till they revel in it in a disaster. Believe the Plex group pushes an replace. You put in it with out serious about which is one thing a large number of us are accountable of. One thing is going catastrophically mistaken, and the database migration script corrupts your library, wiping out your watch historical past and leaving you with un-matched media scattered all over the place.
On a bare-metal or Docker setup, your restoration trail comes to digging thru your dossier machine backups, confidently discovering a duplicate of the database from sooner than the replace. You forestall Plex, change the corrupt database with the outdated one, restart Plex, and pray that the entirety works, however usually it’s going to be inevitable that you just lose the watch knowledge from the times between your remaining backup and now.
On Proxmox, your restoration trail is 3 clicks. You navigate on your Plex VM within the internet interface. You forestall the VM. You choose the “Snapshots” tab. You spot an inventory of timestamped snapshots, you may have been taking one day by day, mechanically, as a result of Proxmox means that you can time table snapshots natively with out a unmarried line of exterior scripting. You choose the snapshot from and click on “Rollback.” 5 seconds later, you get started the VM. Plex boots up and the database is bit-for-bit similar to what it was once with the entirety intact. This isn’t a backup within the conventional sense, however a blank undo button for your whole server.
Gained’t this devour up my garage?
Skinny provisioning and CoW mechanism
A not unusual, legitimate objection to this manner is disk house. “If I’m storing a snapshot of my Plex VM on a daily basis, received’t that devour up terabytes of my pricey SSD garage?” That is the place the structure of Proxmox’s implementation, in particular when the use of ZFS or LVM-thin is helping. Proxmox snapshots don’t seem to be complete clones however use a copy-on-write mechanism.

7 issues no one tells you about web hosting a Plex media server
Are you ready to correctly get started a Plex server?
What it manner in sensible phrases is that after you are taking a base snapshot, the machine creates a brand new empty delta dossier. For twenty-four hours, handiest the modified blocks of information are written to that delta. In case your Plex database is 500MB, and also you watch a couple of presentations, the one blocks written to the snapshot are the particular 50MB of that database dossier that in truth modified. The snapshot itself stays tiny and related to the bottom symbol.
You’ll deal with a rolling chain of snapshots, each and every 3 hours for the remaining day, plus a few dailies with out eating the uncooked disk house required to retailer complete clones. Every week of granular Plex snapshots may value you much less house than a unmarried 4K film dossier.
The limitation
The media recordsdata don’t belong right here
This technique calls for an architectural explanation that regularly separates sensible homelabbers from those that get burned. The VM snapshot is excellent, nevertheless it should no longer be used as a blanket resolution for the entirety throughout the VM. That is the most typical failure mode of this design.
You will have to no longer retailer your media recordsdata throughout the Proxmox VM. In case your Plex VM has a 12TB digital disk filled with media, the snapshot delta recordsdata will briefly transform unmanageable.
Additionally, should you ever must roll again the VM to get better from a database corruption, you might be additionally rolling again your media assortment. A dossier added on Monday will vanish should you roll again to Sunday and that’s no longer one thing you possibly can wish to occur.

This app straight away became my Plex server right into a cable TV substitute
Those old-school TV vibes help in making your Plex library extra discoverable.
Why this isn’t usual apply but
The rationale this manner stays under-discussed is cultural. The Plex neighborhood has traditionally break up into two camps: the turnkey OS customers (Home windows, Unraid, Synology) who price simplicity and the Docker-crowd who prioritize stateless bins however regularly overlook the patience layer. Proxmox represents a 3rd trail, one usually related to server management, which creates an intimidating belief barrier.
However the fact is {that a} elementary Proxmox example with a unmarried Plex VM is not more advanced to deal with than an Unraid server. The internet interface is point-and-click and for that modest finding out curve, you achieve an insurance plans in opposition to essentially the most devastating Plex failure mode that exists.


