OwnMediaHostDocs
Guides

Backups & recovery

Create backups and restore your media infrastructure.

Atomic Backup

Creates an atomic copy of media.db (safe during active writes under SQLite WAL mode) and packages all original media into a compressed archive with SHA-256 checksums:

bash
sudo bash /opt/ownmediahost/scripts/backup.sh /var/backups/ownmediahost

Restore Backup

Restores database, storage files, and environment configuration:

bash
sudo bash /opt/ownmediahost/scripts/restore.sh /var/backups/ownmediahost/backup_YYYYMMDD_HHMMSS
Keep a separate off-server copy of backups. A restore can replace current data; verify the selected backup and destination before running it.

Based on the supplied platform and API documentation. View project source ↗