Hi Ana,

 

I’ve now come to these steps after your suggestions:

 

1.       Build a centos 7 server and install bacula from base i.e. 5.2.13 and 
mariadb

2.       Stop all bacula services on old server

3.       Take a mysql dump of the old server’s bacula database. Mysqldump –u 
root –p bacula > bacula.sql

4.       Copy bacula-dir.conf, bacula-fd.conf, bacula-sd.conf, bconsole.conf 
over to the new server + my custom config files under bacula-dir.d/ and 
bacula-sd.d  

5.       Restore mysql dump onto new server – create database bacula, mysql –u 
root –p < bacula.sql 

6.       Run /usr/libexec/bacula/update_mysql_tables on the new server (this I 
checked upgrades the mysql db tables to version 14 J)

7.       Start bacula daemons on new server and test by restoring etc. 

Anything I missed?

 

From: Ana Emília M. Arruda [mailto:[email protected]] 
Sent: 27 March 2015 17:47
To: Waqar Khan
Cc: [email protected]
Subject: Re: [Bacula-users] Upgrading bacula from version 5 to version 7

 

Hi Wagar,

 

On Fri, Mar 27, 2015 at 2:30 PM, Waqar Khan <[email protected]> wrote:

Hi,

 

I have done some reading on bacula 7 and the 5.2.13 version in centos base. I 
have decided to upgrade to centos7 and use the 5.2.13 version and not go to 7 
just yet. (sorry for changing my mind L)

 

​Don´t worry :). It is your choice. When you could, think of upgrading to 
7.0.5. There are lots of improvements.​

 

         

        The reason for this is that centos7 has the version 5.2.13 in base. 

         

        My plan therefore is:

         

        1.       Build a centos 7 server and install bacula from base i.e. 
5.2.13 and mariadb

         

        2.       Take a mysql dump of the old server’s bacula database. 
Mysqldump –u root –p bacula > bacula.sql

         

        3.       Copy /etc/bacula directory over to the new server

​Please, do not copy the whole directory. You will just need to copy your 
bacula-dir.conf, bacula-fd.conf, bacula-sd.conf, bconsole.conf and other 
customized confs that you could have.​

         

        4.       Restore mysql dump onto new server

         

        5.       Run /usr/libexec/bacula/update_mysql_tables on the new server 

         

        6.       Start bacula daemons

         

        On the current server I have volumes under /home/bacula. Shall I also 
take these over, for historic restores, should I need them? Or shall I leave 
them and can restore from the old version if I need to?

 

​You can move theses volumes to the new server and have all your backups in 
just one server. It is your choice. Also you can keep the old one and have the 
new one with new volumes, new director name, etc. This way you can also delete 
your old volumes from the new catalog (and just have clients, storage, etc. 
from the old one).​ Since you are going to have your old server running until 
the new one works fine, you can do tests with this new environment and when you 
assure this new environment, then you could set this new server as your only 
Bacula server. I would prefer having just one server with all my backups there.

 

         

        Is this a good plan for migrating to a new server and  upgrading from 
5.0.0 to 5.2.13?

 

​If you are going to install a new server there is no need to install 5.0.0 
version. You can install the 5.2.13 and restore your config files and catalog 
to this new server.​

 

 

         

        Thanks all for all your help with this :D

 

​You´re welcome.​

 

 

         

        Regards

        WaqarK

        PGP: D1388321

         

        From: Ana Emília M. Arruda [mailto:[email protected]] 
        Sent: 27 March 2015 16:09

        
        To: Waqar Khan
        Cc: [email protected]
        Subject: Re: [Bacula-users] Upgrading bacula from version 5 to version 7

         

        Hi Wagar,

         

        On Fri, Mar 27, 2015 at 12:55 PM, Waqar Khan <[email protected]> 
wrote:

        Hi,

         

        Thanks all for the replies. My requirement is to move to a centos 7 OS 
with mysql as DB (current is 6). Here is what I’ve found from the instructions 
provided by everyone (and for the benefit of someone in the future in my 
situation):

         

        Firstly, build a new centos 7 machine and do the following

         

        1. Download 7.0.5 code. From 
http://sourceforge.net/projects/bacula/files/bacula/7.0.5/bacula-7.0.5.tar.gz/download
 - does this include bacula-sd, dir and fd?

         

        ​yes. That includes director, file daemon and storage daemon.​

         

         

                 

                2. Extract.

                 

                3. Install deps:

                 

                yum install mysql-devel gcc-c++ readline-devel zlib-devel 
libacl-devel mtx postfix 

                 

                4. Configure:

                 

                ./configure --with-readline=/usr/include/readline 
--disable-conio --bindir=/usr/bin --sbindir=/usr/sbin 
--with-scriptdir=/usr/libexec/bacula/ --with-working-dir=/var/spool/bacula/ 
--with-logdir=/var/log --enable-smartalloc --with-mysql

                 

                5. Build:

                 

                make -j8 && make install && make install-autostart

                 

                6. Run update db script: ( Not sure about this step, please see 
step 8)

                 

                /usr/libexec/bacula/update_bacula_tables

                 

                 

                7. Copy over the config files under /etc/bacula/ to the new 
centos 7 box with bacula 7. Will I need to run step 6 
(/usr/libexec/bacula/update_bacula_tables) here?

         

        ​You can do the update_bacula_tables in step 6.​

         

         

                 

                8. Restart bacula daemons

         

        ​I would recommend you do not start the daemons before the database 
upgrade. So, here, I should say "start bacula daemons".​

         

         

                 

                Please assist on the questions I have above, or is there a 
better way I should be doing this? What about the volumes + files I have on the 
current server, how can I take these across as well?

                 ​

         

        ​A better way would be to have the Bacula´s upgrade in the same 
machine, if you could. This way you would not need to copy the volumes to the 
other host. The volumes should be in same directory that they were before  (you 
should configure and create the same archive device in the new host).​

         

        ​IMHO, this should work fine :).​

         

         

                 

                Regards

                WaqarK

                PGP: D1388321

                 

                From: Ana Emília M. Arruda [mailto:[email protected]] 
                Sent: 27 March 2015 15:13

                
                To: Waqar Khan
                Cc: [email protected]
                Subject: Re: [Bacula-users] Upgrading bacula from version 5 to 
version 7

                 

                Hi Wagar,

                 

                Is that clear for you? I saw the other posts. So you have two 
options: upgrade to 5.2.13 using yum or remove your actual version and build 
from source the 7.0.5 version. If you decide to build from source, remember to 
do a backup of your conf files (they shouldn´t be replaced, but...). You can 
upgrade from 5.0.0 to 7.0.5, since you are going to upgrade your database from 
a version 12 to version 14.

                 

                You can find in the manual:

                 

                10.2 Upgrading Bacula

                10.6 Building Bacula from Source

                 

                Regards,

                Ana

                 

                On Fri, Mar 27, 2015 at 11:08 AM, Waqar Khan 
<[email protected]> wrote:

                Hi Ana,

                 

                The version I am running is 5 exactly:

                 

                Version: 5.0.0 (26 January 2010)

                 

                Selecting database version I get VersionID = 12

                 

                5.0.0 is in the base repo but I can’t see 5.2.13 in there. 
What’s the best way to get to 5.2.13 first? Where can I get 
update_bacula_tables from + documentation :P

                 

                Regards

                WaqarK

                PGP: D1388321

                 

                From: Ana Emília M. Arruda [mailto:[email protected]] 
                Sent: 27 March 2015 13:35
                To: Waqar Khan
                Cc: [email protected]
                Subject: Re: [Bacula-users] Upgrading bacula from version 5 to 
version 7

                 

                Hi!

                 

                Which Bacula´s 5 version do you have? I´ve upgraded from 5.2.13 
to 7.0.5 with no problems (host XenServer). I´m affraid version 5.0.X has a 
prior database version than 5.2.13, so it will be nice to take a look at your 
actual database version (you can make a select to list contents from Version 
table). If you have an earlier database version then 14, you will need to do an 
update_bacula_tables after upgrading software and before starting using Bacula.

                 

                Best regards,

                Ana

                 

                On Fri, Mar 27, 2015 at 10:02 AM, Waqar Khan 
<[email protected]> wrote:

                Hi all,

                 

                I am currently using version 5 of bacula dir,sd and fd. Is 
there any documentation on upgrading to the latest release from this version. 
Will I have to first upgrade to 7.0 or can I upgrade directly to 7.0.5. I am 
also upgrading the base OS from Centos 6 to Centos 7. Which problems can I 
expect?

                 

                Any help will be greatly appreciated.

                 

                Regards

                WaqarK

                PGP: D1388321

                
                
------------------------------------------------------------------------------
                Dive into the World of Parallel Programming The Go Parallel 
Website, sponsored
                by Intel and developed in partnership with Slashdot Media, is 
your hub for all
                things parallel software development, from weekly thought 
leadership blogs to
                news, videos, case studies, tutorials and more. Take a look and 
join the
                conversation now. http://goparallel.sourceforge.net/
                _______________________________________________
                Bacula-users mailing list
                [email protected]
                https://lists.sourceforge.net/lists/listinfo/bacula-users

                 

________________________________

                
                ****************************************
                
                IMPORTANT INFORMATION
                The information contained in this email or any of its 
attachments is confidential and is intended for the exclusive use of the 
individual or entity to whom it is addressed. It may not be disclosed to, 
copied, distributed or used by anyone else without our express permission. If 
you receive this communication in error please advise the sender immediately 
and delete it from your systems. This email is not intended to and does not 
create legally binding commitments or obligations on behalf of Hornbill Service 
Management Limited which may only be created by hard copy writing signed by a 
director or other authorized officer. Any opinions, conclusions and other 
information in this message that do not relate to the official business of 
Hornbill Service Management Limited are unauthorized and neither given nor 
endorsed by it. Although Anti-Virus measures are used by Hornbill Service 
Management Limited it is the responsibility of the addressee to scan this email 
and any attachments for computer viruses or other defects. Hornbill Service 
Management Limited does not accept any liability for any loss or damage of any 
nature, however caused, which may result directly or indirectly from this email 
or any file attached.
                
                Hornbill Service Management Limited. Registered Office: Apollo, 
Odyssey Business Park, West End Road, Ruislip, HA4 6QD, United Kingdom. 
Registered in England Number: 3033585.
                
                
                **************************************** 

                 

________________________________

                
                ****************************************
                
                IMPORTANT INFORMATION
                The information contained in this email or any of its 
attachments is confidential and is intended for the exclusive use of the 
individual or entity to whom it is addressed. It may not be disclosed to, 
copied, distributed or used by anyone else without our express permission. If 
you receive this communication in error please advise the sender immediately 
and delete it from your systems. This email is not intended to and does not 
create legally binding commitments or obligations on behalf of Hornbill Service 
Management Limited which may only be created by hard copy writing signed by a 
director or other authorized officer. Any opinions, conclusions and other 
information in this message that do not relate to the official business of 
Hornbill Service Management Limited are unauthorized and neither given nor 
endorsed by it. Although Anti-Virus measures are used by Hornbill Service 
Management Limited it is the responsibility of the addressee to scan this email 
and any attachments for computer viruses or other defects. Hornbill Service 
Management Limited does not accept any liability for any loss or damage of any 
nature, however caused, which may result directly or indirectly from this email 
or any file attached.
                
                Hornbill Service Management Limited. Registered Office: Apollo, 
Odyssey Business Park, West End Road, Ruislip, HA4 6QD, United Kingdom. 
Registered in England Number: 3033585.
                
                
                **************************************** 

         

________________________________

        
        ****************************************
        
        IMPORTANT INFORMATION
        The information contained in this email or any of its attachments is 
confidential and is intended for the exclusive use of the individual or entity 
to whom it is addressed. It may not be disclosed to, copied, distributed or 
used by anyone else without our express permission. If you receive this 
communication in error please advise the sender immediately and delete it from 
your systems. This email is not intended to and does not create legally binding 
commitments or obligations on behalf of Hornbill Service Management Limited 
which may only be created by hard copy writing signed by a director or other 
authorized officer. Any opinions, conclusions and other information in this 
message that do not relate to the official business of Hornbill Service 
Management Limited are unauthorized and neither given nor endorsed by it. 
Although Anti-Virus measures are used by Hornbill Service Management Limited it 
is the responsibility of the addressee to scan this email and any attachments 
for computer viruses or other defects. Hornbill Service Management Limited does 
not accept any liability for any loss or damage of any nature, however caused, 
which may result directly or indirectly from this email or any file attached.
        
        Hornbill Service Management Limited. Registered Office: Apollo, Odyssey 
Business Park, West End Road, Ruislip, HA4 6QD, United Kingdom. Registered in 
England Number: 3033585.
        
        
        **************************************** 

 




****************************************

IMPORTANT INFORMATION
The information contained in this email or any of its attachments is 
confidential and is intended for the exclusive use of the individual or entity 
to whom it is addressed. It may not be disclosed to, copied, distributed or 
used by anyone else without our express permission. If you receive this 
communication in error please advise the sender immediately and delete it from 
your systems. This email is not intended to and does not create legally binding 
commitments or obligations on behalf of Hornbill Service Management Limited 
which may only be created by hard copy writing signed by a director or other 
authorized officer. Any opinions, conclusions and other information in this 
message that do not relate to the official business of Hornbill Service 
Management Limited are unauthorized and neither given nor endorsed by it. 
Although Anti-Virus measures are used by Hornbill Service Management Limited it 
is the responsibility of the addressee to scan this email and any attachments 
for computer viruses or other defects. Hornbill Service Management Limited does 
not accept any liability for any loss or damage of any nature, however caused, 
which may result directly or indirectly from this email or any file attached.

Hornbill Service Management Limited. Registered Office: Apollo, Odyssey 
Business Park, West End Road, Ruislip, HA4 6QD, United Kingdom. Registered in 
England Number: 3033585.


****************************************
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to