Skip to content
v2.17
ES

Backups and moving servers

OpenNCCM backups and how to restore them on the same server or a new one.

Video course · OpenNCCM from scratch · in Spanish

Copias y actualizaciones

Lesson 9.2 of 30 · Module 9 · Administration

See the full course

OpenNCCM keeps everything important in two places:

Path Contents
/var/lib/opennccm Database (configurations, history, users, policies), firmware images and backups.
/etc/opennccm secret.key (encryption key) and opennccm.env (service configuration).

System → Create backup now menu. Schedule the daily backup in Tasks and, in Settings → Disaster recovery, set how many backups to keep and a remote SFTP server to send each backup to.

System: recovery backups and the restore command.

Ventana de terminal
sudo opennccm backup # without the key
sudo opennccm backup --with-key # includes secret.key: protect the file
  1. On a new server, install OpenNCCM first (see Install on Ubuntu).
  2. If the backup does not include the key, copy the original secret.key to /etc/opennccm/secret.key.
  3. Restore:
Ventana de terminal
sudo opennccm restore /path/opennccm-YYYYMMDD-HHMMSS.tar.gz

The command stops the service, restores and starts it again.