Backup and Restore with Scripts
The backup and restore procedures for the DIRAC server can be done with scripts available at /opt/dirac/bin:
Syntax: nemdiracbackup [backup filename]
Syntax: nemdiracrestore [backup filename]
Please note:
The “backup filename” parameter is optional.
→ Without a backup filename the scripts create and use per default a backup file named “nemdiracbackup.tar” stored in the /opt/dirac/bin directory.
The scripts restore and backup the following persistent data:
• DIRAC Device Management Channel key pairs
• SENC1 Crypto Engine public keys
• Topology database (SENC1 Crypto Engines and MPLS tunnels endpoints)
Backup and restore of DIRAC server
The persistent data of the DIRAC server shall be restored.
→ Backup
Proceed as follows:
1. Login as dirac user on the Linux machine.
2. Open a terminal.
3. Move to the directory /opt/dirac/bin:
$ cd /opt/dirac/bin
4. Create a backup of the DIRAC server:
$ ./nemdiracbackup
• The script creates or updates the backup file nemdiracbackup.tar in the folder “/opt/dirac/bin”.
Result: The backup of the DIRAC server persistent data is done.
→ Restore
Proceed as follows:
1. Login as dirac user on the Linux machine.
2. Open a terminal.
3. Move to the directory /opt/dirac/bin:
$ cd /opt/dirac/bin
4. Restore the DIRAC server:
$ ./nemdiracrestore
• The script restores the data from the backup file “/opt/dirac/bin/nemdiracbackup.tar”.
• The script reboots the DIRAC server to load the backup.
Result: The DIRAC server is restored.
End of instruction
Please note:
If the topology database has been modified between the backup and restore events the modifications must be done again.