Skip to content

Back up and restore

For the person who set up Stuga.

For the person who set up Stuga. By default, Stuga backs up daily at 03:00 in its configured time zone and keeps the newest three backups, plus the latest backup from before an upgrade. Backups stay on the same computer. Stuga also backs up before an update changes its data.

  1. Open Settings → This node → Backups.
  2. Check Scheduled backup, Repeat and At for the schedule and time. The page shows the time zone.
  3. Set Keep to choose how many backups to keep.
  4. Choose Back up now to take one now.

Stuga pauses while backing up; open documents reconnect afterwards. The page lists backups and any failure. A failed scheduled backup also notifies the people who look after Stuga.

The folder appears under Backups. Copy backups to another disk so a failure of Stuga’s disk doesn’t take them too. On a Mac, Time Machine can keep copies when it is enabled.

Restoring replaces all current Stuga data. Nobody can use Stuga during the restore. Take a fresh backup first if you want to keep the current state.

  1. Open Terminal and follow the Mac command setup to add stuga-node to this Terminal window.

  2. Run stuga-node list and copy the name of the backup you want.

  3. Stop Stuga:

    Terminal window
    sudo launchctl bootout system/dev.stuga.node
  4. Restore, replacing the example with the backup name. Type that name again when asked:

    Terminal window
    stuga-node restore 2026-09-16T101500Z
  5. Start Stuga again:

    Terminal window
    sudo launchctl bootstrap system /Library/LaunchDaemons/dev.stuga.node.plist

Open Stuga and check your documents. The restore keeps the data it replaced separately, but the restored Stuga resumes its usual deletion of old trash and expired history.

Use the Docker restore instructions. They stop Stuga, restore the backup and start the Stuga release recorded in it.