MongoDB Database Problem | Import dailyexports after reinstall

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

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What does Incremental Backup mean?

Incremental backups will only copy files that have changed or are new since the last full backup....

Bare Metal Restore

JetBackup5 (v5.3.0) Introduces the ability to perform Bare Metal Restores! This new feature...

Backups Failed with Error: (cURL Error code: 77) | Failed connecting destination

We have received some reports from CentOS 7 / CloudLinux 7 users of CURL Error code 77 errors....

[SSH / Local] Backups Missing from Reindex - Only showing newer backups

Recently, we've received some reports that the "Reindex Destination" feature is missing backups...

Backups for Inactive UUIDs are not cleaned

Currently, if an account contains multiple Assignable UUIDs which contain backups, those backups...