This article provides a guide for how to copy JetBackup configuration to new server. This can be a useful tool for server administrators.
How to Copy JetBackup Configuration to New Server
JetBackup includes a convenient export tool, which can be used to clone server configurations to new servers.
To copy JetBackup configuration to new server, follow the steps below:
- Access the server you are migrating from through SSH as the "root" user. (Source Server)
- Use the JetBackup export tool to create a backup of the configuration by running the following command:
/usr/bin/jetbackup5 --export
Example output:
Export Location: /usr/local/jetapps/usr/jetbackup5/exports/jetbackup5_export_1737046793.tar.gz
- Using SFTP or your favorite file management tool, you can download the file from the following path:
/usr/local/jetapps/usr/jetbackup5/exports/
- Once downloaded, you can use SFTP or your favorite file management tool to upload the configuration archive to your new server in a path that you can remember. In this article, we will use the following path, where $backupfile is the name of the configuration archive:
/home/$backupfile
- Access the new server through SSH as the "root" user. (Target Server)
- Use the JetBackup import tool to read the uploaded configuration:
/usr/bin/jetbackup5 --import {PATH/TO/EXPORT_FILE}
To continue with our example, you can use this command, where $backupfile is the name of the configuration archive:/usr/bin/jetbackup5 --import /home/$backupfile
- Upon completion of import, the settings of the Target Server will match those of the Source Server.
Conclusion
You now know how to copy JetBackup configuration to new server.