View on GitHub

file-backups

File Save & Backup Utility For TiddlyWiki

← Home

File Backups for TiddlyWiki Classic

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

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.

TiddlyWiki Classic’s own backup option is switched off while the AddOn is active; the AddOn’s rotating backups replace it.

Save milestone

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

Backup overview

The backups entry in the backstage menu opens the FileBackups tiddler (also linked from the milestone dialog as Backups overview »). It shows:

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

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, edit the FileBackupsConfig tiddler:

|remindAfterDays|14|
|fileCountLimit|30|
|sizeLimitMB| |

Leave a value empty to use the default; 0 turns that reminder off for this wiki. Changes apply from the next save.

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 » (in the FileBackups tiddler) 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 sidebar button, the backstage entries and the FileBackups tiddler come from the AddOn and disappear on reload.

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

Delete them manually if you don’t need them.

← Home