Hi, 28.07.2007 00:06,, Maria McKinley wrote:: > Hello, > > I would like to move bacula to a new machine, and I just want to make > sure I have the procedure correct, and have a couple of questions along > the way. I should note that I am also upgrading bacula from 1.38 on the > old machine to 2.03 on the new one. My plan is to make the config files > exactly the same (except the hostname will be different, of course), and > copy /var/lib/bacula/bacula.db, var/lib/bacula/bacula.sql and all > bootstrap files to the new machine. Any other files necessary or useful? > I am assuming that I use the same procedure as if there was something > wrong with my catalog, so at this point I think I am suppose to > initialize the database: > > ./drop_bacula_tables > ./make_bacula_tables
No, not necessarily. There are scripts provided to upgrade the catalog. But you should consider switching from sqlite to either MySQL or PostgreSQL. You will probably want to keep your catalog, but I'm almost sure that a sqlite dump is not compatible with the other databases. Without ever having tried a database engine change, I suspect that changing the dump is possible using tools like sed or awk, but you should be prepared to invest a day or so... > And now I need to restore the catalog, so I start up bacula and > bconsole, and use bf run (what does bf run mean - is this different from > run?), That's a bug in the manual... bf should probably be \bf in the manual source which would simply mean bold face. So, the command you use is really only 'run'. > choose RestoreFile, restore.bsr, make sure everything else makes > sense. This should restore the database, and now I think I need to > compact the catalog: > > cd {\bf working-directory} > echo 'vacuum;' | sqlite bacula.db > > where working-directory is /var/lib/bacula in my case. So now the > catalog and database should be correct. Do I need to run bf run with the > bootstrap files from the clients as well, and do I do this also before I > compact the catalog? > > And now, theoretically, if I have my tape drive hooked up to the new > machine, I should be able to restore my home directories from tape to > the new hard drive... > > Thanks to anyone willing to read this over, and provide a sanity check > for me. Actually, I'd do this different. Kepp the old server around to be on the safe side. Copy all the relevant files to the new one - mainly configuration, bootstrap files, catalog dump. Create the catalog on the new machine and load the dump. Modify the configuration on the new machine as needed. I would suggest to simply change the relevant addresses and keep all the names the same. (I know this can be confusing because you can not easily distinguish if jobs were stored to the old or new SD, but you won't have to change the client configuration, for example.) Start Bacula on the new machine and see if the catalog is ok. Try test restores. Get the status of the defined clients. Fix any remaining problems. Run some jobs manually. Hopefully, there are no problems. That should have been it, your new backup server is ready for use. Keep the old one for some time, anyway, but make sure you don't run both of them at the same time... Arno > cheers, > maria > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users