Page 1 of 1

How to take backup on drbd setup

Posted: Sat Nov 16, 2024 6:18 am
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

Re: How to take backup on drbd setup

Posted: Mon Nov 18, 2024 11:42 am
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.

Re: How to take backup on drbd setup

Posted: Thu Nov 28, 2024 4:47 am
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.