Johnny Hughes
2007-Feb-26 13:41 UTC
[CentOS] Upgraded BackupPC (3.0.0) in the Testing Repository
There is an upgraded BackupPC in the testing repository. It is version 3.0.0, which was released in January. The setup differences between version 2.1.2 and this version is that some file directories have shifted locations: 1. /var/lib/backuppc/conf is now instead /etc/BackupPC/ 2. /var/lib/backuppc/log is now /var/log/BackupPC ============================== If you are upgrading ... you _CAN_NOT_ just copy your old config.pl config file into /etc/BackupPC can continue on ... you need to migrate in any changes that you made to original file to this config.pl file as there are updated options in the new file. How is the best way to do that ... you did save a copy of the original file prior to changing it ... right :P If not ... here is what I did: ----commands---- cd /tmp mkdir backuppc cd backuppc wget http://dev.centos.org/centos/4/testing/i386/RPMS/backuppc-2.1.2-3.c4.centos4.i386.rpm rpm2cpio backuppc-2.1.2-3.c4.centos4.i386.rpm | cpio -idv ----end commands----- You should be in /tmp/backuppc and you should see all the files (extracted) from the original RPM in there ... inside the /tmp/backuppc/var/lib/backuppc/conf/ should be an original config.pl file. You can use that file to create a diff file that you can read to make changes to the new config.pl file. here is what I did prior to upgrade: ----commands---- cd /var/lib/backkuppc/ cp -a conf conf.bak cp -a logs logs.bak cd conf.bak cp /tmp/backuppc/var/lib/backuppc/conf/config.pl config.pl.orig diff config.pl.orig config.pl > config.pl.diff ----end commands---- Now you are ready to upgrade ... you will need to enable the testing repo to do the upgrade (or download the files manually and install manually via RPM). How to do the upgrade via yum: Put the testing repo file into /etc/yum.repos.d/ : http://dev.centos.org/centos/4/CentOS-Testing.repo (the file is disabled by default) Once you have the file in place, use this command: ----commands---- yum --enablerepo=c4-testing upgrade backuppc perl-Compress-Zlib perl-File-RsyncP perl-Time-modules perl-XML-RSS ----end commands---- (that command in all on one line if it wraps in your mail client) You can use that diff file from above to manually add new changes to the /etc/BackupPC/config.pl file after upgrade. Also after upgrade, you can move all the files in /var/lib/backuppc/log/ to /var/log/BackupPC/ Once everything is configured ... restart backuppc and httpd Once everything is working, you can get rid of the following directories in "/var/lib/backuppc/" ... conf, conf.bak, log, log.bak If you are installing new, replace "upgrade" with "install" in the above yum command ... and see the README.centos file in /usr/share/doc/backuppc-3.0.0/ after install Here is the original announcement, which also has good info: http://lists.centos.org/pipermail/centos-devel/2006-April/002216.html Thanks, Johnny Hughes -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20070226/3cc0443b/attachment.sig>
Dag Wieers
2007-Feb-26 14:38 UTC
[CentOS] Upgraded BackupPC (3.0.0) in the Testing Repository
On Mon, 26 Feb 2007, Johnny Hughes wrote:> There is an upgraded BackupPC in the testing repository. It is version > 3.0.0, which was released in January. > > The setup differences between version 2.1.2 and this version is that > some file directories have shifted locations: > > 1. /var/lib/backuppc/conf is now instead /etc/BackupPC/ > > 2. /var/lib/backuppc/log is now /var/log/BackupPCAs a packager, I would seriously consider removing the mixed-case from the directory names (and package name) and contact backuppc about this fact. In Unix we have a tendency to not use uppercase or mixed case for a specific reason and applications shouldn't mandate new standards or poison existing standards, more than they already have. (/etc/X11 comes to mind) Kind regards, -- dag wieers, dag at wieers.com, http://dag.wieers.com/ -- [all I want is a warm bed and a kind word and unlimited power]
Possibly Parallel Threads
- BackupPC won't fork after CentOS 5.2 upgrade
- Re: how to install BackupPC on CentOS 5.2 -- how do I use Test repository?
- how to install BackupPC on CentOS 5.2 -- use Testing repository
- BackupPC 2.0.0beta0 released - now supports rsync
- Initial release of PerlRsync (perl rsync client)