21. Backup & Restore
Admin Backups are made and restored by the owner and admin profiles.
A backup is a snapshot of the server’s database: all titles and their details, watch history, profiles, lists, collections and settings. Your media files aren’t included (they stay where they are). The server backs itself up every night with nothing to set up; admins can choose where the backups go and make one now from Settings → System on the Shield or the web app’s Server settings (section 23). Restoring and deleting backups is on the Shield only.
Nightly Backups Admin
- Every night at 3:00 (the server’s own clock) the server makes a backup and keeps the last 7 nightly ones, deleting older nightly backups. The time and how many to keep (1–60) can be changed in the web app. If the server was off at 3:00, the backup runs as soon as it’s up later that day. Backups you make yourself, and safety backups, are never deleted automatically.
- Settings → System → Backups shows how it’s going: Last Nov 28, 3:00 AM · 156 MB · to ShieldCinema’s own data · nightly at 03:00, No backups yet, or a warning such as The last backup failed: ….
- Select the row for:
- Back up now (below);
- Where backups go (below);
- Nightly backups: on at 03:00, keep 7 (turn off), or off (turn on).
Where Backups Go Admin
| Choice | Where |
|---|---|
| ShieldCinema’s own data (default) | Next to the database. Works with no setup, but it’s the same drive, so it won’t help if that drive fails |
| NAS share name | A share connected in the admin pages’ Storage (section 1). Backups go in its own shieldcinema-backups folder; nothing else on the share is touched |
| Folder path | A folder added to ShieldCinema’s Docker setup (the install guide’s Updates and backups page shows how). It can only be chosen in the web app; the Shield shows it once it’s set |
Only shares that are connected and not read-only are offered; the Storage form’s Mount read-only box is ticked by default, so untick it for a backup share. With no such share, the list says To use your NAS: connect a share in Storage, in the web admin pages. If the chosen place can’t be used when a backup is due (a share has dropped, for example), the backup goes into ShieldCinema’s own data instead, so backups never stop, and the Backups row says so. The web app can also Test a place before you use it (section 23).
Creating a Backup Admin
Settings → System → Backups → Back up now asks “Create a backup of the current database? This includes all media metadata, watch history, user accounts, and settings.” Confirm, and you’ll see Backup created: <name> (12.3 MB). Backups are named with the date and time.
Restoring from Backup Admin
Settings → System → Restore Database opens Select Backup, listing each backup in the place currently chosen, with its size and date (No backups available if there are none). Backups left in an earlier place don’t appear.
- Select a backup.
- Confirm. The server first makes a safety backup of the current database, so you can undo a restore.
- The backup is set aside to replace the database at the server’s next start (Restore ready. Safety backup: <name> Restart the server to finish restoring.). Until then nothing has changed.
- Restart the server (for example
docker restart shieldcinema) to finish restoring.
Deleting Backups Admin
Select Delete… from the Restore Database list: Delete Backups shows a checklist of backups. Tick the ones to remove and select Delete Selected (Deleted N backup(s)).