[Bacula-users] Upgrading bacula from version 5 to version 7
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 Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
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 waqar.k...@hornbill.com 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 Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- 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 Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Upgrading bacula from version 5 to version 7
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 I don't know if there are already 7.0.5 packages for CentOS. You can build from source: 1. Download 7.0.5 code. 2. Extract. 3. Install deps: yum install postgresql(or 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-postgresql (or mysql) 5. Build: make -j8 make install make install-autostart 6. Run update db script: /usr/libexec/bacula/update_bacula_tables 7. Restart bacula daemons. Regards WaqarK PGP: D1388321 From: Ana Emília M. Arruda [mailto:emiliaarr...@gmail.com] Sent: 27 March 2015 13:35 To: Waqar Khan Cc: Bacula-users@lists.sourceforge.net 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 waqar.k...@hornbill.com 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 Bacula-users@lists.sourceforge.net 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. -- 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 Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Upgrading bacula from version 5 to version 7
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:emiliaarr...@gmail.com] Sent: 27 March 2015 13:35 To: Waqar Khan Cc: Bacula-users@lists.sourceforge.net 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 waqar.k...@hornbill.com 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 Bacula-users@lists.sourceforge.net 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. -- 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 Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Upgrading bacula from version 5 to version 7
CentOS 6.5 should be 5.2.13. Try yum update bacula-client Sent from my android device. -Original Message- From: Waqar Khan waqar.k...@hornbill.com To: Ana Emília M. Arruda emiliaarr...@gmail.com Cc: Bacula-users@lists.sourceforge.net bacula-users@lists.sourceforge.net Sent: Fri, 27 Mar 2015 10:15 AM Subject: Re: [Bacula-users] Upgrading bacula from version 5 to version 7 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:emiliaarr...@gmail.com] Sent: 27 March 2015 13:35 To: Waqar Khan Cc: Bacula-users@lists.sourceforge.net 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 waqar.k...@hornbill.commailto:waqar.k...@hornbill.com 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 Bacula-users@lists.sourceforge.netmailto:Bacula-users@lists.sourceforge.net 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. -- 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 Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Upgrading bacula from version 5 to version 7
No Change in structure Database 5.2.5 to 7.x Adjust your conf file ( /var/run/bacula - /var/run for ex ), that's all :) I make this for Ubuntu 14/Bacula 5.2.5 to CentOs 7/bacula 7.0.5 Le 27/03/2015 14:14, bacula-users-requ...@lists.sourceforge.net a écrit : Send Bacula-users mailing list submissions to bacula-users@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/bacula-users or, via email, send a message with subject or body 'help' to bacula-users-requ...@lists.sourceforge.net You can reach the person managing the list at bacula-users-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than Re: Contents of Bacula-users digest... Today's Topics: 1. Re: director won't start (Josip Deanovic) 2. Re: bacula doesn't write on the whole tape (Kern Sibbald) 3. Re: director won't start (Tim Dunphy) 4. Re: director won't start (Tim Dunphy) 5. Re: director won't start (Heitor Faria) 6. Upgrading bacula from version 5 to version 7 (Waqar Khan) -- Message: 1 Date: Thu, 26 Mar 2015 23:34:31 +0100 From: Josip Deanovic djosip+n...@linuxpages.net Subject: Re: [Bacula-users] director won't start To: bacula-users@lists.sourceforge.net Message-ID: 5411101.iJ0jrJCtmQ@libria Content-Type: text/plain; charset=us-ascii Quoting message written on Thursday 2015-03-26 17:37:18: I actually copied the password from the config file, and pasted it into the command prompt for the password when connecting to mysql. Your config file seems ok to me except that you have omitted the first line of the config file which probably looks like Director { If you are sure that you can manually connect to the mysql using the same connection data and the same environment (e.g. the same user used for running bacula-dir daemon) and you are sure that there is no some kind of restriction or security in place (e.g. selinux) than in my opinion it could only be setup of the bacula database in the mysql. Have you performed a major bacula upgrade recently or some kind of database restore? You have mentioned the unfortunate incident. If you had to recreate the bacula database make sure that you (or your puppet configuration) perform commands used for creation of the bacula database and setting appropriate privileges. That would be: create_mysql_database make_mysql_tables grant_mysql_privileges -- Olivier DELESTRE Pôle Systèmes DSI - Direction des systèmes d'information de l'informatique Université de ROUEN Batiment 16 - IRESE-B Place Emile Blondel 76821 MONT-SAINT-AIGNAN CEDEX Accès: http://goo.gl/cYgtX Tel : 02.35.14.64.63 Accueil DSI: 02.35.14.61.00 Fax : 02.35.14.64.64 Mail fonc: syst...@univ-rouen.fr Mail pers: olivier.deles...@univ-rouen.fr -- 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 Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Upgrading bacula from version 5 to version 7
Hi Wagar, On Fri, Mar 27, 2015 at 2:30 PM, Waqar Khan waqar.k...@hornbill.com 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:emiliaarr...@gmail.com] *Sent:* 27 March 2015 16:09 *To:* Waqar Khan *Cc:* Bacula-users@lists.sourceforge.net *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 waqar.k...@hornbill.com 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:emiliaarr...@gmail.com] *Sent:* 27 March 2015 15:13 *To:* Waqar Khan *Cc:* Bacula-users@lists.sourceforge.net *Subject:* Re: [Bacula-users] Upgrading bacula from version 5 to version 7
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 waqar.k...@hornbill.com 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:emiliaarr...@gmail.com] *Sent:* 27 March 2015 13:35 *To:* Waqar Khan *Cc:* Bacula-users@lists.sourceforge.net *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 waqar.k...@hornbill.com 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 Bacula-users@lists.sourceforge.net 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. -- 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 Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Upgrading bacula from version 5 to version 7
Hi Wagar, On Fri, Mar 27, 2015 at 12:55 PM, Waqar Khan waqar.k...@hornbill.com 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:emiliaarr...@gmail.com] *Sent:* 27 March 2015 15:13 *To:* Waqar Khan *Cc:* Bacula-users@lists.sourceforge.net *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 waqar.k...@hornbill.com 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:emiliaarr...@gmail.com] *Sent:* 27 March 2015 13:35 *To:* Waqar Khan *Cc:* Bacula-users@lists.sourceforge.net *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 waqar.k...@hornbill.com 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
Re: [Bacula-users] Upgrading bacula from version 5 to version 7
Hi Waqar, On 27 March 2015 at 15:08, Waqar Khan waqar.k...@hornbill.com wrote: 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 I'm the Bacula Fedora maintainer, and the packages go directly from Fedora to RHEL from time to time. There are two repositories with backports for all supported CentOS/RHEL/Fedora distributions. One is for 5.2.13 and one is for 7.0.x: http://repos.fedorapeople.org/repos/slaanesh/bacula7/ http://repos.fedorapeople.org/repos/slaanesh/bacula/ Both will allow you to upgrade from CentOS/RHEL provided Bacula 5.0.0 packages, keeping the database selection. Please read the appropriate READMEs. My suggestion is to add the repository now, before upgrading and upgrading the tables. This will make sure nothing else has changed. Then, upgrade the distribution, and the packages will simply update themselves. Regards, --Simone -- You cannot discover new oceans unless you have the courage to lose sight of the shore (R. W. Emerson). http://xkcd.com/229/ http://negativo17.org/ -- 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 Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Upgrading bacula from version 5 to version 7
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? 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? 8. Restart 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? Regards WaqarK PGP: D1388321 From: Ana Emília M. Arruda [mailto:emiliaarr...@gmail.com] Sent: 27 March 2015 15:13 To: Waqar Khan Cc: Bacula-users@lists.sourceforge.net 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 waqar.k...@hornbill.com 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:emiliaarr...@gmail.com] Sent: 27 March 2015 13:35 To: Waqar Khan Cc: Bacula-users@lists.sourceforge.net 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 waqar.k...@hornbill.com 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 Bacula-users@lists.sourceforge.net 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
Re: [Bacula-users] Upgrading bacula from version 5 to version 7
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:emiliaarr...@gmail.com] Sent: 27 March 2015 17:47 To: Waqar Khan Cc: Bacula-users@lists.sourceforge.net 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 waqar.k...@hornbill.com 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:emiliaarr...@gmail.com] Sent: 27 March 2015 16:09 To: Waqar Khan Cc: Bacula-users@lists.sourceforge.net 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 waqar.k...@hornbill.com 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
Re: [Bacula-users] Upgrading bacula from version 5 to version 7
Hi Wagar, On Fri, Mar 27, 2015 at 3:25 PM, Waqar Khan waqar.k...@hornbill.com wrote: 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? I don't think so. If you are able to restore from your volumes that you copied from the old to the new server and also you are able to do some backup tests in this new environement, congratulations! You have your new server working fine :) Best regards, Ana *From:* Ana Emília M. Arruda [mailto:emiliaarr...@gmail.com] *Sent:* 27 March 2015 17:47 *To:* Waqar Khan *Cc:* Bacula-users@lists.sourceforge.net *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 waqar.k...@hornbill.com 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:emiliaarr...@gmail.com] *Sent:* 27 March 2015 16:09 *To:* Waqar Khan *Cc:* Bacula-users@lists.sourceforge.net *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 waqar.k...@hornbill.com 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