View on GitHub

file-backups

File Save & Backup Utility For TiddlyWiki

← Home

File Backups for TiddlyWiki 5

What File Backups adds to a TiddlyWiki 5 wiki. Requirements, installation and the backup strategy are on the Home page. Using TiddlyWiki Classic? See File Backups for TiddlyWiki Classic.

Saving and backups

Open your wiki from a file:// URL inside your Downloads folder and save as usual. Each save writes the wiki to its current location and a rotating backup into twBackups/<wiki>.html/ next to it.

Save milestone

A milestone is an extra snapshot that the rotation never overwrites.

Save As

Alt+S opens the browser’s “Save As” dialog, so you can save a copy of the wiki anywhere inside your Downloads folder.

Toolbar buttons and shortcuts

Only Save milestone is shown in the toolbar by default. Save As is opt-in: tick its checkbox in Control Panel → Settings → FileBackups. The keyboard shortcuts work either way and can be changed in Control Panel → Keyboard Shortcuts.

Backup overview

Control Panel → Settings → FileBackups shows this wiki’s latest rotating backups and milestones:

The Source column says downloads for backups the AddOn saved, and Folder sync for files it found in the folder (see below).

Reminders

Three optional reminders, all off by default:

Set the defaults for every wiki in the AddOn options: about:addons → File Backups → Preferences → Backup awareness (0 = off).

To change them for one wiki, use the Backup awareness (this wiki) fields in Control Panel → Settings → FileBackups. Leave a field empty to use the default; 0 turns that reminder off for this wiki. The values are stored in $:/config/file-backups/remindAfterDays, $:/config/file-backups/fileCountLimit and $:/config/file-backups/sizeLimitMB.

When a limit is reached, a box appears at the top of the wiki after saving, with Save milestone or Show backups, and Snooze. Snooze tells you until when the reminder stays quiet. The AddOn only informs — it never deletes your files.

Folder sync

Open & sync this wiki’s backup folder » (Control Panel → Settings → FileBackups) opens the backup folder in a Firefox tab and compares it with what the AddOn has recorded:

If the wiki has no save record yet, the folder page says so: save the wiki once, then open the folder again. Folder sync needs the “Access local files on your computer” permission (see Home).

Opening a backup

When you open a backup or milestone file, the wiki shows which backup it is, with a link back to the main wiki.

After uninstalling

Reload any open wiki tabs. The AddOn’s helper tiddlers under $:/temp/plugins/file-backups/* (toolbar buttons, readme, license) live in memory only and disappear on reload.

These tiddlers stay in your wiki, because they’re yours:

Delete them manually if you don’t need them.

← Home