Skip to content

Getting started

This walkthrough runs your first backup and restore. It assumes you’ve completed Installation and the services are running.

Terminal window
/opt/backup/bin/backup-console

You’ll get the * prompt. Type help any time, or status director to check things are healthy.

Out of the box the Director protects itself — a working backup scheme with no configuration:

Two jobs (both run the local File Daemon, zstd-compressed):

JobPriorityWhat it backs up
Director-Confs10/etc, /opt/backup, and the web console state (/opt/backup/backupweb). Volumes and the dedup chunk store are excluded so backups never fold into themselves.
Director-Catalog11Every local PostgreSQL database (the NGBackup catalog included), via the postgresql plugin.

A retention ladder of three disk pools on the Disc1 storage, auto-pruned, volumes auto-labelled <Pool>-NNNN:

PoolKeepsUsed by
Daily-Disc14 daysthe weekday Differentials
Weekly-Disc1 monththe weekly Fulls
Monthly-Disc3 monthsthe monthly Full

One schedule (StandardCycle), all at 20:00:

  • Differential every Mon–ThuDaily-Disc
  • Full on the 2nd–5th FridayWeekly-Disc
  • Full on the 1st Friday of the month → Monthly-Disc

Edit any of it with config set / the web console, or add your own clients — this is a starting point, not a cage. See Pool, Schedule, and Job for the directives.

Run one of the default jobs interactively (or your own):

* run

Choose the backup job (e.g. Director-Confs), confirm, and the Director will dispatch it: the File Daemon reads the files and streams them to the Storage Daemon, which writes (and deduplicates) them to a volume. Watch progress with:

* status director
* messages
* list jobs
* list files jobid=1
* restore

Pick (5) Select the most recent backup, choose the client, then browse the file tree:

cd /etc
mark passwd
done

Confirm the restore job. By default files are restored to /tmp/bacula-restores so you never overwrite originals by accident — change the destination in the restore dialog when you’re ready.

* messages

You should see Restore OK. That’s a full backup-and-restore cycle.

  • Configure — define your own Clients, Contents, Schedules and Pools (the complete directive reference).
  • Restore — granular file restore, Instant Recovery, and cross-hypervisor V2V.
  • Plugins — protect databases, hypervisors and Microsoft 365.