Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Nächste Überarbeitung
Vorherige Überarbeitung
server_und_serverdienste:backuppc_auf_centos_mit_ldap [2017/04/25 09:26] – angelegt boospyserver_und_serverdienste:backuppc_auf_centos_mit_ldap [2021/03/04 15:25] (aktuell) lois
Zeile 1: Zeile 1:
 ====== Backuppc auf Centos mit LDAP ====== ====== Backuppc auf Centos mit LDAP ======
  
 +Hauseigenes Apt-Repo: [[https://apt.iteas.at]]    [[https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KE592Y5993ZKW|{{:wiki:btn_donatecc_lg.gif|}}]]
 +\\
 +\\
 __**Verwendetes System: CentOS 7**__ __**Verwendetes System: CentOS 7**__
  
 ===== Installation ===== ===== Installation =====
 <code> <code>
-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 bzip2 zsh cifs-utils nload 
 +usermod -s /bin/zsh backuppc
 </code> </code>
 +
 +===== Konfiguration =====
 +
 +Ändern der Config:
 +<code>
 +nano /etc/BackupPC/config.pl
 +</code>
 +<file perl config.pl>
 +
 +# von
 +
 +$Conf{CgiAdminUserGroup} = '';
 + $Conf{CgiAdminUsers} = '';
 +
 +# auf 
 +
 +$Conf{CgiAdminUserGroup} = '';
 + $Conf{CgiAdminUsers} = 'backuppc';
 +
 +# von 
 +
 +$Conf{PingPath} = '';
 +
 +# zu
 +
 +$Conf{PingPath} = '/bin/ping';
 +</file>
 +
 +Apacheconfig für Backuppc editieren:
 +<code>
 +nano /etc/httpd/conf.d/BackupPC.conf
 +</code>
 +<file bash BackupPC.conf>
 +<Directory /usr/share/BackupPC/>
 + # 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 /etc/BackupPC/apache.users yourusername
 + #
 +AuthType Basic
 + AuthUserFile /etc/BackupPC/apache.users
 + AuthName "BackupPC"
 +<IfModule mod_authz_core.c>
 + <RequireAll>
 + Require valid-user
 + <RequireAny>
 + Require local
 + # --> In order to access only this specific IP
 + # Require ip 192.168.16
 + Require all granted
 + </RequireAny>
 + </RequireAll>
 + </IfModule>
 + <IfModule !mod_authz_core.c>
 + AllowOverride All
 + Order allow,deny
 + #Deny from all
 + Allow from all
 + </IfModule>
 +</Directory>
 +Alias /BackupPC/images /usr/share/BackupPC/html/
 + ScriptAlias /BackupPC /usr/share/BackupPC/sbin/BackupPC_Admin
 + ScriptAlias /backuppc /usr/share/BackupPC/sbin/BackupPC_Admin
 +</file>
 +<code>
 +chown -R backuppc:backuppc /var/lib/BackupPC
 +</code>
 +==== Benutzer anlegen ====
 +<code>
 +htpasswd -c /etc/BackupPC/apache.users backuppc
 +setcap cap_net_raw+ep /bin/ping
 +systemctl restart backuppc.service
 +systemctl restart httpd.service
 +</code>
 +
 +===== Migration von Ubuntu auf Centos7 =====
 +
 +Folgende Dinge müssen beim Migrieren geändert/angepasst werden:
 +
 +  * Konfigfiles der einzelnen Hosts liegen nicht unter ''/etc/backuppc'' sonder unter ''/etc/BackupPC/pc''. Bei Ubuntu ist das ein symbolischer Link. 
 +  * Configfiles müssen die Gruppe "apache" verwenden (Syntax bleibt gleich)
 +  * Das Hauptverzeichnis von Backuppc ist in CentOS7 ''/var/lib/BackupPC'' und nicht wie in Ubuntu ''/var/lib/backuppc''.
 +  * SSH-Keys natürlich nicht vergessen zu kopieren. 
 +