Files
wekan/docs/Features/Admin-Panel/Attachments/Backup.md
T
Lauri Ojansivu 75f02d9c32 Docs: Admin Panel index, URLs, validation, Who sees what and Attachments: what each feature is, how to use it, how its numbers are calculated, how it works, and its commits.
The Attachments README counts its 13 panes (it said 12), the old /information
address is documented as redirecting to /admin/settings/version, and the
retention, limits and backup numbers are taken from the code.

Thanks to xet7 !
2026-11-22 18:23:39 +02:00

6.5 KiB

Admin Panel / Attachments / Backup

What it is

Admin Panel / Attachments / Backup takes a backup archive of this WeKan now or on a schedule: the database text data, the attachments and the avatars, each a checkbox. A site admin backs up the whole instance; an Organization's admin backs up only that Organization's boards. The archives can be listed and restored from the same pane.

Use Backup and restore for the current illustrated guide: immediate and scheduled backups, instance/Organization scope, storage destinations, restore modes and coverage limits. It also explains how to copy a complete stopped FerretDB/SQLite installation with users and attachments.

An Admin Panel archive, a raw database backup and a board export contain different data. Choose the method and verify its restore before relying on it.

Read more

How to use it

Take a backup now:

  1. Open your member menu (top right) → Admin Panel → Attachments → Backup (it is the pane that opens).
  2. Under Backup scope, choose Whole instance or one Organization.
  3. Tick what to include: Attachments, Avatars, Data (text). A complete backup needs all three and Whole instance.
  4. Choose Save to storage, then press Backup now. Backup completed is shown when it is done.

Schedule backups:

  1. In Scheduled backups, choose a Frequency: Off, Daily, Weekly or Monthly.
  2. For Weekly pick the day of the week, for Monthly the day of the month, and set the time.
  3. Press Save.

Restore:

  1. Press List backups.
  2. Choose the Restore mode: Add missing data only or Replace all data, and restore the archive you want.

How the numbers are calculated

From models/lib/backupPaths.js and models/lib/backupRuns.js:

  • Schedule time - HH:MM, 00:00 to 23:59, default 04:00. Weekly defaults to Sunday. Day of the month is 1 to 28, so every month has that day.
  • Overdue - a scheduled instance backup is overdue when its last success is older than the period plus a 2-hour grace: 26 hours for Daily, 7 days 2 hours for Weekly, 31 days 2 hours for Monthly.
  • A run still "running" after 24 hours counts as failed (STALE_RUNNING_MS).
  • History - run records older than 400 days are removed when a new run starts; the backup history (Problems / Backup) shows the 30 most recent.
  • BACKUP_KEEP_DAYS - a whole number of days from 1 to 3650; anything else is 0, which keeps every backup. After a successful backup, local archives older than that many days are deleted.
  • A scheduled backup that finds another backup still running is recorded as failed with "skipped: another backup was still running".

How it works in WeKan

Commits