Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Nächste Überarbeitung | Vorherige Überarbeitung | ||
server_und_serverdienste:backuppc_auf_centos_mit_ldap [2017/04/25 07:26] – angelegt boospy | server_und_serverdienste:backuppc_auf_centos_mit_ldap [2021/03/04 14:25] (aktuell) – lois | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Backuppc auf Centos mit LDAP ====== | ====== Backuppc auf Centos mit LDAP ====== | ||
+ | Hauseigenes Apt-Repo: [[https:// | ||
+ | \\ | ||
+ | \\ | ||
__**Verwendetes System: CentOS 7**__ | __**Verwendetes System: CentOS 7**__ | ||
===== Installation ===== | ===== Installation ===== | ||
< | < | ||
- | yum install perl-LDAP.noarch perl-Apache-Session-LDAP.noarch httpd mod_perl backuppc elinks | + | yum install perl-LDAP.noarch perl-Apache-Session-LDAP.noarch httpd mod_perl backuppc elinks |
+ | usermod -s /bin/zsh backuppc | ||
</ | </ | ||
+ | |||
+ | ===== Konfiguration ===== | ||
+ | |||
+ | Ändern der Config: | ||
+ | < | ||
+ | nano / | ||
+ | </ | ||
+ | <file perl config.pl> | ||
+ | |||
+ | # von | ||
+ | |||
+ | $Conf{CgiAdminUserGroup} = ''; | ||
+ | | ||
+ | |||
+ | # auf | ||
+ | |||
+ | $Conf{CgiAdminUserGroup} = ''; | ||
+ | | ||
+ | |||
+ | # von | ||
+ | |||
+ | $Conf{PingPath} = ''; | ||
+ | |||
+ | # zu | ||
+ | |||
+ | $Conf{PingPath} = '/ | ||
+ | </ | ||
+ | |||
+ | Apacheconfig für Backuppc editieren: | ||
+ | < | ||
+ | nano / | ||
+ | </ | ||
+ | <file bash BackupPC.conf> | ||
+ | < | ||
+ | # BackupPC requires valid authentication in order for the web interface to | ||
+ | # function properly. One can view the web interface without authentication | ||
+ | # though all functionality is disabled. | ||
+ | # | ||
+ | # htpasswd -c / | ||
+ | # | ||
+ | AuthType Basic | ||
+ | | ||
+ | | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | < | ||
+ | | ||
+ | # --> In order to access only this specific IP | ||
+ | # Require ip 192.168.16 | ||
+ | | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | | ||
+ | Order allow,deny | ||
+ | #Deny from all | ||
+ | Allow from all | ||
+ | </ | ||
+ | </ | ||
+ | Alias / | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | < | ||
+ | chown -R backuppc: | ||
+ | </ | ||
+ | ==== Benutzer anlegen ==== | ||
+ | < | ||
+ | htpasswd -c / | ||
+ | setcap cap_net_raw+ep /bin/ping | ||
+ | systemctl restart backuppc.service | ||
+ | systemctl restart httpd.service | ||
+ | </ | ||
+ | |||
+ | ===== Migration von Ubuntu auf Centos7 ===== | ||
+ | |||
+ | Folgende Dinge müssen beim Migrieren geändert/ | ||
+ | |||
+ | * Konfigfiles der einzelnen Hosts liegen nicht unter ''/ | ||
+ | * Configfiles müssen die Gruppe " | ||
+ | * Das Hauptverzeichnis von Backuppc ist in CentOS7 ''/ | ||
+ | * SSH-Keys natürlich nicht vergessen zu kopieren. | ||
+ |