Semaphore Backup and Restore

Each Netos NetBox environment has its own Semaphore: a small automation console where you run ready-made tasks against that NetBox. Today those tasks back up NetBox, restore NetBox from a backup, and delete a backup you made. You do not need Netos support to take a backup before a change or to roll NetBox back afterwards.

Semaphore is separate from NetBox. It has its own address and its own access, and it stays up while NetBox is down, for example during a restore.

What You Need

  • Your Semaphore link: your Netos link with semaphore/ on the end, https://<zone>.app.netos.io/<env>/<pod>/semaphore/.
  • Semaphore access for that environment. It is granted separately from NetBox: access to NetBox does not give you Semaphore, and Semaphore does not give you NetBox. Ask your Netos administrator.
  • Your usual Netos sign-in. Semaphore uses the same sign-in as your zone; there is no second password. See Get Started.
  • A reason to restore, if you plan to. A restore replaces all NetBox data in the environment with the backup you choose. Anything changed after that backup is lost.

Open Semaphore

  1. Open your Semaphore link. If you are not signed in, the zone sign-in page shows first.
  2. The first time you open it, a page titled Provisioning Ansible Semaphore shows for a few seconds while your access is set up.
  3. You land on Task Templates in the NetBox Backup and Restore project.

You hold the Task Runner role: you can run the task templates and read their results, but not edit them or add new ones. The menu shows Dashboard (the task history), Task Templates and Schedule; other items sit under More.

The Three Task Templates

Template What it does What you choose
Back up NetBox Takes a full backup of this NetBox: database, media, scripts, reports and plugins. About 5 minutes; NetBox shows a maintenance page meanwhile An optional Message, shown in the backup's label
Restore NetBox Puts NetBox back to the chosen backup. About 7 minutes; NetBox is offline meanwhile Backup to restore: your backups and Netos backups, newest first
Delete a NetBox backup Permanently deletes one of your own backups. A few seconds Backup to delete: your own backups only

To run a template, select the run button next to its name, fill in the form, and select Run. Only one task runs at a time: a second task shows Waiting and starts when the first one finishes.

Backups are labelled by who made them, when (UTC), and, for your own backups, the message you entered:

  • Customer · 2026-11-15 21:23 UTC · Before the change
  • Netos · 2026-11-15 14:17 UTC

Customer backups are the ones made with Back up NetBox. Netos backups are the ones Netos takes; you can restore them but not delete them. The project also has a Daily backup schedule that runs Back up NetBox once a day; it is listed under Schedule.

Back Up NetBox

  1. On Task Templates, run Back up NetBox.
  2. In Message, write what the backup is for, for example Before the change. Up to 120 characters are kept.
  3. Select Run. The task opens and shows Running.
  4. When the task shows Success, the backup appears in the restore and delete lists with your message.

If the task fails, no Customer backup is added. The log names the step that failed.

Restore NetBox

  1. On Task Templates, run Restore NetBox.
  2. In Backup to restore, choose the backup. The newest backup is selected for you, so check the date and message before you continue.
  3. Select Run.

Before anything changes, the task checks that no other backup or restore is running and that every file in the chosen backup matches the checksum recorded when it was taken. NetBox is then offline for about 7 minutes. Keep the task open, or find it later under Dashboard. When the task shows Success, NetBox is back with the data from that backup.

If you are not sure, take a backup first, so you can come back to where you are now.

Delete a NetBox Backup

  1. On Task Templates, run Delete a NetBox backup.
  2. In Backup to delete, choose the backup. Nothing is selected for you, and only Customer backups are listed.
  3. Select Run. When the task shows Success, the backup is gone from both lists. A deleted backup cannot be recovered.

Check a Task with Dry Run

Tick Dry Run in the run form to check a task without changing anything. The task runs its read-only checks (no other backup or restore is running; for a restore, the chosen backup is complete and its checksums match; for a delete, the backup is one of yours) and then stops with:

Dry run: checks passed, nothing was changed. The operation was not started.

If a check fails, the Dry Run fails with the same message the real task would give. Use Dry Run before a restore to confirm the backup you chose is usable. Leave Diff and Debug unticked; they add nothing for these tasks.

Read the Task Log

Open a task and select its Log tab. The log is a standard Ansible log: each step is a TASK line followed by its result (ok, changed or failed), with a short line explaining what the step does and how long it takes. A backup ends with a summary of the backup (its label, size and duration); a restore ends with a summary of the restore.

  • Long steps (taking the backup, restoring NetBox) show their output when the step ends, not line by line. Wait for the task status to change.
  • A failed step shows failed and the error. Send Netos support the task number from the top of the task page.
  • The lines before the first step, such as No ... requirements.yml file found, come from Semaphore itself and are expected.

Troubleshooting

What you see Likely cause What to do
The sign-in page says your account isn't set up for this environment You have no Semaphore access for this environment Ask your Netos administrator for Semaphore access
Provisioning Ansible Semaphore does not move on Your access was not set up in time Reload the page. If it happens again, contact Netos support
A task shows Waiting Another task is running in this Semaphore Wait; it starts when the other task finishes
A task fails with "Another NetBox backup or restore is running" Netos or another task is backing up or restoring this NetBox Try again when it has finished
Your new backup is labelled Netos, not Customer A Netos backup ran at the same time, so the backup could not be attributed to you You can still restore it. Ask Netos support if you need it removed
A backup is missing from Backup to delete It is a Netos backup, or it has passed your environment's retention period Netos backups can be restored but not deleted. Ask Netos support for your retention period
A task shows Failed The task stopped part way Open the Log tab to see the failed step and its message. Contact Netos support with the task number