Skip to content

Back up your log

TR4W creates a verified snapshot of the open contest database. A manual backup works without an external backup destination.

Make and check a backup

  1. Press Alt+F to back up the open log.
  2. Read the result and note the local snapshot path. Local backups are kept in the backup folder under TR4W's writable settings folder.
  3. If you configured BACKUP DESTINATION, TR4W also copies the snapshot there in the background. Check that copy's completion separately: a successful local snapshot does not prove the external copy completed.
  4. Confirm the reported file exists. Keep a copy on another physical disk for protection against loss of the local disk.

Set an automatic interval

Open Ctrl+J → Backup. Set Back up every to the number of new QSOs between backups. 0 disables the automatic schedule.

Backup Preferences page showing the QSO interval and optional Copy to destination

The interval counts newly logged records since the last successful backup. It starts at zero each session. Dupes, X-QSOs, and contacts received from peers count. Notes are excluded. With automatic backups enabled, the next QSO also triggers a backup if the last successful snapshot is at least 30 minutes old or missing. The snapshot runs in the background. A failure keeps the count and delays the next automatic attempt for five minutes.

Use Copy to (the BACKUP DESTINATION setting) to add a background copy.

Snapshot files

The periodic snapshot is named for its log, with periodic.db in the filename. A successful replacement retains the prior snapshot as .bak. A .new file is a staging file: preserve it after a failure, but check the result and diagnostic log before trusting it.

Clear Log first makes a separate UTC-dated snapshot in the local backup folder. If that snapshot fails, clearing stops without removing the contacts. Keep the dated snapshot until you have verified the intended result.

Opening a database with an older schema takes a verified snapshot before conversion. Look for a file named <log> before schema <old> to <new>.db in the local backup folder. TR4W refuses to upgrade the log if it cannot publish the backup. Keep this copy if you may need to return to the older TR4W version.

Recover safely

Use TR4W's backup command while the log is open. Copying only an active database file can miss committed contacts still in its write-ahead log.

For a full station archive, close TR4W and retain the contest folder, settings, and custom support files as well. A log snapshot does not back up every station file or credential.

Follow Restore files and recover a contest to rehearse recovery on a separate copy. Check identity, contact count, recent QSOs, and score before relying on it.

Source and review boundary

Reviewed for 5.1.0 against uAppPaths, uLogStore, uLogBackup, uBackupCopyService, and the backup callers. The procedures were reviewed in source.