When updating JetBackup 5, you may encounter a similar error to the following:
error: jetmongod-4.4.28.2-103.x86_64: install failed
When this happens, we recommend taking the following steps:
1. Make a copy of the /usr/local/jetapps/usr/jetbackup5/dailyexports directory to a location OUTSIDE of /usr/local/jetapps. This is important because those files will be deleted once JB5 is removed in Step 2.
# This will make a directory "JBConfigExports" and then copy all the previous exports to that directory.
mkdir -p /root/JBConfigExports ; cp -rav /usr/local/jetapps/usr/jetbackup5/dailyexports/* /root/JBConfigExports/
2. Remove JetBackup 5 packages, including jetmongod. Enter "y" (yes) when prompted.
CentOS/CloudLinux/AlmaLinux/Rocky Linux 7, 8, 9 Only:
yum remove jetbackup5-base jetbackup5-{PANEL} jetmongod
Debian/Ubuntu Only:
apt autoremove jetbackup5-base jetbackup5-{PANEL} jetmongod
3. Install the packages using the JetApps install script
jetapps --install jetbackup5-{PANEL} stable
4. Import the JB Config Daily exports you made using jetbackup5 --import
jetbackup5 --import /PATH/TO/EXPORT.tar.gz
5. IMPORTANT Now, reindex ALL destinations that were previously created in JB5. This is required as snapshot index data is not included in the daily exports. (they're intended to be a quick export - the same as jetbackup5 --export)
You can use this command to reindex all destinations if you have multiple:
for id in $(jetbackup5api -F listDestinations | grep '_id: ' | awk '{print $2}'); do jetbackup5api -F reindexDestination -D "_id=$id" ; done