Lou’s Lab

Voor ik verga tot stof en as, wil ik weten hoe de wereld was (RvhG)

User Tools

Site Tools


backuppc:installatie

backuppc installatie

context

dit document beschrijft de installatie van backuppc op Debian

installatie

  • apt install backuppc
  • aanvaard Apache als web server
  • wijzig wachtwoord van gebruiker backuppc:
    htpasswd /etc/backuppc/htpasswd backuppc
  • open /etc/apache2/conf-enabled/backuppc.conf
  • zet Require localin commentaar:
            <RequireAll>
                    # Comment out this line once you have setup HTTPS and uncommented SSLRequireSSL
                    Require local
    
                    # This line ensures that only authenticated users may access your backups
                    Require valid-user
  • Herstart Apache: systemctl restart apache2
  • open een browser op http://<servernaam>/backuppc en meld aan met gebruiker backuppc

configuratie

  • geef de gebruiker backuppc sudo rechten om tar uit te voeren als root:
    vi /etc/sudoers.d/backuppc
    # Allow backuppc to run tar without a password
    backuppc ALL=NOPASSWD: /usr/bin/tar
  • open Server > Edit config > Xfer
    • XferMethod: tar
      • TarClientPath: /usr/bin/tar
      • TarClientCmd:
        /usr/bin/env LC_ALL=C /usr/bin/sudo $tarPath -c -v -f - -C $shareName+ --totals
      • TarClientRestoreCmd:
        /usr/bin/env LC_ALL=C /usr/bin/sudo $tarPath -x -p --numeric-owner --same-owner -v -f - -C $shareName+
  • stel als volgt het datapad om naar /backup:
    systemctl stop backuppc
    cp -a /var/lib/backuppc/* /backup
    umount /backup
    rm -rf /var/lib/backuppc/
    mount /dev/vg00/lv-backup /var/lib/backuppc
    pas bovenstaand pad aan in /etc/fstab
    systemctl daemon-reload

Note: Bovenstaande config laat je toe backup/restore te doen van de localhost

problemen, problemen

Service Unavailable

  • /var/log/apache2/error.log:
    [Fri Dec 01 11:06:21.513341 2023] [cgid:error] [pid 791944:tid 140678952605376] (22)Invalid argument: \\ [client 10.11.12.13:59018] AH01257: unable to connect to cgi daemon after multiple tries: /usr/share/backuppc/cgi-bin/index.cgi
  • oplossing: systemctl restart apache2

meer info

backuppc/installatie.txt · Last modified: 2023/12/06 18:55 by admin