
Guide
Catch-up TV and timeshift: how they work and what they cost
Catch-up TV and timeshift for IPTV operators: recording windows, a worked storage example, where recordings live, Xtream timeshift URLs, players and rights.
Guide· intermediate
IPTV panel backups: database, media and config, retention, off-site S3 or B2 storage, encryption, RPO and RTO in plain words, and a restore drill you repeat.

Numbers are rules of thumb
Sizing figures here are labelled estimates from operating experience, not measurements of your setup. Test with your own channel list and audience before committing.
IPTV panel backups are the task nobody checks until the day they matter. That day is a failed disk, a suspended hosting account or a bad update at midnight. This guide separates what you must back up from what you can rebuild. You get a cheap retention and off-site layout, encryption without theory, RPO and RTO in plain words, and a restore drill you repeat every quarter.
The guide is written for self-hosted panels; a section at the end covers what changes with a hosted one.
Short version: The database is your business and it is small: dump it at least nightly, encrypt it, send it to object storage at a different provider, keep a month of dailies and a year of monthlies. Config and certificates go with it. Media is optional and expensive; back up what you cannot re-acquire. None of that counts until you have restored it on a clean server, timed it, and written down what broke.
A panel server holds data with very different values per gigabyte.
| Kind | Examples | Size | Changes | If lost |
|---|---|---|---|---|
| Database | Lines, resellers, credit ledger, streams, bouquets, EPG mappings, orders, invoices, tickets | Hundreds of MB to a few GB | Constantly | The business is gone |
| Configuration | Panel config files, reverse proxy config, TLS certificates and keys, firewall rules, cron jobs, environment files with secrets | Megabytes | Rarely | Hours of rebuilding, downtime |
| Media | VOD files, catch-up recordings, 24/7 channel sources, logos | Terabytes | Daily growth | Re-acquire or lose the catalogue |
This is the asset. It holds every customer line, every reseller’s credit balance, every order and invoice. Nothing else on the server matters if this is gone, and nothing else is as cheap to back up.
Dump it with the database’s own tool (mysqldump or mariadb-dump for the Xtream UI and XUI One family, pg_dump for PostgreSQL-based panels) rather than copying data files, so the dump is consistent and restorable on a different version. Use the flags that give a consistent snapshot without locking the panel for the duration (--single-transaction for InnoDB tables). Compress it. A panel with tens of thousands of lines produces a dump you can e-mail; disk is not the constraint.
Check the dump every time. The most common silent failure is a cron job that writes a file containing one line of error and reports success. A rule of thumb: alert if the compressed dump is smaller than 80 percent of yesterday’s, and open the start of the file after any credential or version change. The uninstall guide carries the same warning for the export before a migration.
Small, boring and the reason a restore takes six hours instead of one. Collect into a daily archive:
.ini file with database credentials and API keys.Treat this archive as secret; it contains keys.
Here you decide what is worth paying to store twice.
For the files you do keep, an incremental tool (restic, borg, rclone with a versioned bucket) copies only changes and keeps history.
Keep copies old enough to predate a problem you have not noticed yet. Corruption, a deleted reseller or a mistaken bulk edit often surfaces days later; if you only keep last night’s dump, you have a perfect copy of the damage.
A common schedule for a small operator, as a starting point:
| Copy | Keep |
|---|---|
| Hourly or every few hours (database only) | 2 days |
| Daily | 30 days |
| Weekly | 3 months |
| Monthly | 12 months, longer if your bookkeeping rules say so |
Compressed database dumps at this schedule fit in a few gigabytes for most panels. Write the retention into the backup tool’s policy (restic forget --keep-daily 30 --keep-weekly 12 --keep-monthly 12, or lifecycle rules on the bucket), not into a script you have to remember to run.
Invoices and ledger exports have their own legal retention, often six to ten years depending on your country. Export them from the panel and keep them as documents, separately from the database dumps that you will eventually delete.
The backup must live somewhere a failure of the server, the data centre or the hosting account cannot reach. Object storage from a different provider is the standard answer: Backblaze B2, Wasabi, Hetzner Object Storage, Cloudflare R2, Amazon S3 or any S3-compatible service.
Rules that make it a real off-site copy:
rclone or aws s3 cp, record a SHA-256 alongside.Provider snapshots are useful for rollback before an update. They are not off-site and not a substitute.
Your backups contain every customer’s name, e-mail, IP history and payment references, plus the panel’s own secrets. Encrypt before the data leaves the server.
The practical options:
The key or repository password is the thing people lose. Store it in the team’s password manager and in one offline place that is not the server, and reference it in the runbook by location, never by value. A backup you cannot decrypt is a very secure way of having no backup.
Two terms from disaster-recovery planning are worth learning because they turn “we have backups” into decisions.
RPO, recovery point objective, is how much recent data you accept losing. Worked example: you dump the database at 03:00 and the disk dies at 22:00. You lose nineteen hours of renewals, orders and ledger rows. If that hurts, dump more often or replicate the database to a second server.
The database is small, so an hourly dump is cheap. Pick the RPO by asking what you would have to re-enter by hand from e-mails and bank statements.
RTO, recovery time objective, is how long you accept being down. It is set by the slowest step of the restore, which is almost never the database import: finding the key, provisioning a server, remembering the firewall rules, reissuing certificates, updating DNS. The only way to know your RTO is to run the drill and time it.
Write both numbers down. Then compare them with what the drill shows. The gap is your to-do list.
A backup that was never restored is a hope. The drill below takes an afternoon the first time and an hour once the runbook exists. Run it on a clean temporary server, never on production, and never by pointing the restored panel at production’s load balancers.
Keep the runbook as a plain text file in two places. The person running the real restore at 3 a.m. may not be the person who wrote it.
With a hosted panel, the vendor runs the panel software and backs it up on its own schedule. Where the database lives depends on the product: some vendors host it, others keep it on your main server. Check that before you drop the database dump from your list, then ask the vendor:
IPTVOS, an advertiser on IPTVBlog, backs up hosted panels daily (every 12 hours on its Enterprise plan) with copies the customer can restore. Its database lives on your main server, which dumps it nightly at 03:30 and keeps seven days; media on load balancers is not backed up, and a hot standby for the main server is planned, not shipped. The IPTVOS review has the rest. Whatever hosted panel you use, your own servers, media and local configuration stay your responsibility, and the drill above still applies to them.
At least nightly, and more often if losing a day of line renewals and payments would hurt. The database is small compared with media, so a dump every few hours costs little. Pick the interval from how much data you can afford to re-enter, then automate it.
Only if you cannot get them again. Files you can re-acquire or re-encode from a source are cheaper to re-download than to store twice. Catch-up recordings expire on their own. Back up the catalogue metadata (which titles exist, their paths) so you know what to rebuild.
It is a convenient one for rollback before an update, and a poor one for disaster recovery. Snapshots sit at the same provider as the server, often in the same data centre, and a hosting account suspension takes them with it. Keep snapshots for rollback and a separate off-site copy for recovery.
It depends on the product. Most back up the panel on the vendor's schedule, but some keep the database on your own main server, so check where it lives. Check whether you can download a copy, how long copies are kept and what happens to them if you leave. Your stream servers, media and any local configuration remain yours to back up.



IPTVOS · hosted IPTV panel
Stop patching a PHP panel at 3 a.m.
Signed updates with rollback, daily backups, Xtream API, MAG portal, branded Android app. Still beta; no card payments; no Xtream UI importer yet.
Topicsoperationsbackups

Guide
Catch-up TV and timeshift for IPTV operators: recording windows, a worked storage example, where recordings live, Xtream timeshift URLs, players and rights.

Guide
The Xtream Codes API from the operator's side: player_api.php actions, get.php, xmltv.php, stream URLs, line logins, and why credentials in URLs matter.

Guide
How IPTV load balancers work: origin and relay servers, one provider connection per channel, GeoIP routing, failover, common faults and a sizing rule of thumb.
Comments