Backups, autosave and undo
Mistakes during service preparation are normal: a deleted item, a wrong edit, a crash in the middle of typing. Altar Studio has several layers of protection, each catching a different kind of mistake at a different scale.
| Layer | Catches | Scale | Lasts |
|---|---|---|---|
| Undo | "I didn't mean to do that" | One schedule edit | Until you open another service |
| Autosave | Crashes, power cuts, forgetting to save | The open service | Always on |
| Daily and weekly backups | "Last week's version was right" | The whole database | 7 dailies, 4 weeklies |
| Manual and pre-restore backups | "Before I try something big" | The whole database | Until you delete them |
| Archive instead of delete | Removing the wrong song | One library item | Indefinitely |
Undo is for the schedule only
Ctrl+Z undoes changes to the service's schedule: adding, removing, moving, grouping, editing items. It keeps 100 steps.
Undo deliberately never touches Live. If it could, pressing Ctrl+Z to undo a schedule change during a service could change the screen. Undo is for preparing. For the live screen, use the output controls.
Undo history is cleared when you open another service. Undoing back into a different service would be confusing and easy to get wrong.
Autosave means there's no Save button
Every change to a service is saved about 0.7 seconds after you stop editing, and saves run one at a time, in order. The status in the top bar (Saving, Saved, Save failed) tells you where things stand. Altar Studio also saves before you open another service, before exporting, and when you close the window.
There's no Save button. A presentation app is often closed in a hurry, or the laptop simply runs out of battery. Autosave means your work is safe even when nobody remembered to save it.
Backups are taken when you work
The daily backup isn't on a timer. It's taken the first time you save something each day. A church computer that's only switched on for Sunday services doesn't fill its backups with identical copies from days it sat unused. The backups that exist are from the days that mattered.
Backups count files, not days. Seven daily backups on a Sunday-only computer reach back seven Sundays.
Backups are made with SQLite's VACUUM INTO, which writes a consistent, compacted copy of the database while the app is running. Before a restore, Altar Studio checks the backup's integrity and backs up the current data. So a restore is itself undoable.
Why backups don't copy media
Media files are named by their contents and never change (see Where your data lives). A backup only needs to record which media existed, and each backup's manifest does exactly that. Copying gigabytes of video every day would fill the disk.
The trade-off: if a media file is deleted from the assets folder by hand, or the disk fails, backups can't bring it back. For full protection, copy the whole workspace folder to another drive now and then.
Archive, not delete
Deleting a song, theme or other library item archives it. It disappears from lists, but it stays in the database, and services that use it keep working, because they hold their own copy. Media works the same way: the file stays on disk.
Right after archiving a song, the confirmation offers Undo. There's no screen yet for browsing archived items, so to get back something archived earlier, restore a backup from before it was archived.
Only services are deleted permanently, after a confirmation. Backups keep earlier copies of those.
See also: Back up and restore