我以前在centos 5测试中安装了backuppc3.1.0。该方案现在已不再由centos主营。
EPEL的BackupPC版本为3.3.0,但yum update并没有暗示这个包是由centos替代backuppc包。
如何将backuppc centos转换为BackupPC EPEL?
我不打算执行重新安装,因为这台机器已经做了很多配置,以达到它现在的状况。
有什么想法吗?
谢谢
[root@backup yum.repos.d]# yum info backuppc
Loaded plugins: downloadonly
Installed Packages
Name : backuppc
Arch : i386
Version : 3.1.0
Release : 1.el5.centos
Size : 2.5 M
Repo : installed
Summary : BackupPC is a high-performance, enterprise-grade system for backing up Unix, Linux
License : GPL
Description: BackupPC is a high-performance, enterprise-grade system
: for backing up Linux, Win32, and laptops to a server's disk.
: Features include clever pooling of identical files, no client-side
: software, and a powerful Apache/CGI user interface.
Available Packages
Name : BackupPC
Arch : i386
Version : 3.3.0
Release : 2.el5
Size : 666 k
Repo : epel
Summary : High-performance backup system
URL : http://backuppc.sourceforge.net/
License : GPLv2+
Description: BackupPC is a high-performance, enterprise-grade system for backing up Linux
: and WinXX and Mac OS X PCs and laptops to a server's disk. BackupPC is highly
: configurable and easy to install and maintain.发布于 2014-10-16 10:53:08
问题在于大写字母,这就是为什么百胜认为BackupPC是完全不同的包。
实现你想要做的事情的一种方法是:
配置文件(我可以看到)是:
/etc/httpd/conf.d/backuppc.conf
/etc/backuppc/config.pl
/etc/backuppc/hosts数据文件在目录中:
/var/lib/backuppcEPEL包将使用大写字母创建config/dirs:
/var/lib/BackupPC所以,即使你不备份文件,文件也不会丢失。
如果您对此感到不舒服,可以使用CentOS 5旋转测试VM,安装rpmbuild,并使用BackupPC源RPM包,然后解压缩:
rpm2cpio BackupPC-3.3.0-2.el5.src.rpm | cpio -idv然后在.spec文件中添加一行:
Obsoletes: backuppc在“要求”行附近的某个地方。在重新构建RPM之后,将其传输到您的服务器,并通过以下方式安装:
rpm -Uvh BackupPC-3.3.0-2.el5.i386.rpm在那之后,你可以使用EPEL的更新。
注意:请不要在您的生产机器上编译和构建包,为此旋转一个dev VM。如果你觉得不舒服,我可以为你做一个包裹。
https://serverfault.com/questions/637454
复制相似问题