How to take backup on drbd setup

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
Prashant23
Posts: 7
Joined: Sat Nov 16, 2024 6:00 am

How to take backup on drbd setup

Post by Prashant23 »

Hi all,

How to take nagiosxi application backup in drbd setup.

Our application is configured in drbd setup for HA.
We are trying to take backup of nagiosxi application using default backup_xi sh script but it's unable to backup of Nagios and Nagiosxi files and folders and mysqldb as all data on /drbd partitions not on default/use/local directories.

In my installation, i have Nagios installed in a folder named /drbd (/drbd/nagios, /drbd/nagiosxi, drbd/mysql etx) and I have symbolic links set up under /usr/local. This works great, but noticed that inside backup_xi.sh, the use of "tar" doesn't backup any of the files.

Anyone tried to take backup of nagiosxi on drbd setup
sgardil
Posts: 355
Joined: Wed Aug 09, 2023 9:58 am

Re: How to take backup on drbd setup

Post by sgardil »

Prashant23 wrote: Sat Nov 16, 2024 6:18 am Hi all,

How to take nagiosxi application backup in drbd setup.

Our application is configured in drbd setup for HA.
We are trying to take backup of nagiosxi application using default backup_xi sh script but it's unable to backup of Nagios and Nagiosxi files and folders and mysqldb as all data on /drbd partitions not on default/use/local directories.

In my installation, i have Nagios installed in a folder named /drbd (/drbd/nagios, /drbd/nagiosxi, drbd/mysql etx) and I have symbolic links set up under /usr/local. This works great, but noticed that inside backup_xi.sh, the use of "tar" doesn't backup any of the files.

Anyone tried to take backup of nagiosxi on drbd setup
Hey @Prashant23

I believe you will need to manually change the backup_xi.sh script to do what you want. There are several locations that run a tar czfp that you'll need to change the second arguement to the location from /usr/local/ to your /drbd locations. That being said I may need to look into it further but there may be complication for restoring to that backup if you want to keep the drbd directories. You would probably have to modify the restore script if you wanted to do so. Hopefully this helps and lmk if it pointed you in the right direciton.
Prashant23
Posts: 7
Joined: Sat Nov 16, 2024 6:00 am

Re: How to take backup on drbd setup

Post by Prashant23 »

Thanks for information.

I abled to a backup from /drbd by adding "tar czfph" to all tar command mentioned under "backing up files" section.

Restoration also worked fine. thanks all.
Post Reply