This article explains how to back up the Junos Space platform database using the CLI.
Follow the steps below to back up the Junos Space platform database using the CLI.
Step 1: Access the Debug Shell
Log in to the Junos Space CLI.
From the menu, press 7 to enter the Debug shell.
Step 2: Trigger the Database Backup
Run the following command to start the database backup:
/var/www/cgi-bin/secure/backupDb mode=local item=MySQL targetPath= comment=NA user=dummy operation=backup
Step 3: Locate the Backup File
After the backup completes successfully, the backup file is stored in the following directory:
cd /var/cache/jboss/backup
Step 4: Copy the Backup File to the Admin Home Directory
Copy the generated backup file to /home/admin:
cp backup_202*.tgz /home/admin
Update the file ownership:
chown admin:admin /home/admin/backup_202*.tgz
Step 5: Download the Backup File
You can now transfer the backup file from the Junos Space node to your local system using WinSCP or any other secure file transfer tool.
If you encounter any issues while backing up the database, please contact Juniper JTAC Support for further assistance.