Installation
This guide installs a complete single-server NGBackup site, then shows how to add File Daemons on the machines you want to protect. Everything installs under /opt/backup/.
Requirements
Section titled “Requirements”- A 64-bit Linux server (Ubuntu/Debian, RHEL/Rocky/Alma, SUSE, or Arch/Manjaro/BigLinux), Windows, or macOS for clients.
- PostgreSQL — the only supported catalog database. (MySQL/MariaDB- and SQLite-compatible binaries can be developed on special order.)
- Root (or
sudo) on the server that will run the Director and Storage Daemon.
1. Install the packages
Section titled “1. Install the packages”Pick your platform:
sudo apt install backup-dir backup-sd backup-fd backup-consolesudo dnf install backup-dir backup-sd backup-fd backup-consolesudo pacman -S backupThis installs the programs in /opt/backup/bin/ and sample configuration in /opt/backup/etc/.
2. Create the catalog database
Section titled “2. Create the catalog database”# PostgreSQL examplesudo -u postgres createuser backupsudo -u postgres createdb -O backup backup/opt/backup/bin/backup-dbcheck --create-schemaThe Director stores every job, file and volume here, which is what makes restores fast.
3. Review the configuration
Section titled “3. Review the configuration”The defaults work out of the box for a local backup. The files live in /opt/backup/etc/:
| File | Service |
|---|---|
backup-dir.conf | Director |
backup-sd.conf | Storage Daemon |
backup-fd.conf | File Daemon |
backup-console.conf | Console |
Validate any config before starting a service:
/opt/backup/bin/backup-dir -t -c /opt/backup/etc/backup-dir.conf4. Start the services
Section titled “4. Start the services”sudo systemctl enable --now backup-sd backup-dir backup-fdConfirm they’re listening (Director 9101, File Daemon 9102, Storage Daemon 9103):
/opt/backup/bin/backup-console* status director5. Protect another machine
Section titled “5. Protect another machine”On each machine you want to back up, install just the File Daemon. It is flag-driven — no config file required, which is ideal for automation and containers:
backup-fd --fd-address 0.0.0.0 --fd-port 9102 \ --sd-address backup-server --sd-port 9103Then add a matching Client resource on the Director (see Configure → Client).
Next: run your first backup in Getting started.