apt install backuppc
yum install backuppc
Select in the "Postfix Configuration" "No configuration", if you do not need notifications by mail.
Then they write to us, at what URL BackupPC will be available, as well as login/password for access.
Password can be changed:
htpasswd /etc/backuppc/htpasswd backuppc
If you change the user, then the Web interface may have no fields for configuring BackupPC, since such a user must be in the system and specified in the file: "/etc/backuppc/config.pl"
I didn’t show the interface at all from Ubuntu 18.04 from the Web box, I didn’t deal with Apache2, and picked up Nginx.
Create an SSH key on the server to connect to clients:
ssh-keygen -t rsa -f /var/lib/backuppc/key
passphrase not set.
mkdir /var/lib/backuppc/.ssh chmod 700 /var/lib/backuppc/.ssh cp /var/lib/backuppc/key /var/lib/backuppc/.ssh chmod 600 /var/lib/backuppc/.ssh/key chown -R backuppc:backuppc /var/lib/backuppc/.ssh/
adduser backuppc mkdir /home/backuppc/.ssh chmod 700 /home/backuppc/.ssh
In the file "/home/backuppc/.ssh/authorized_keys" copy the contents of "key.pub" from the server.
chmod 600 /home/backuppc/.ssh/authorized_keys chown -R backuppc:backuppc /home/backuppc/.ssh
backuppc ALL = NOPASSWD: /usr/bin/rsync, /usr/bin/env, /bin/tar
When trying to backup, BackupPC will generate an error, since it cannot add host information to the "known_hosts" file, for this you need to connect from the server via SSH to the client as this user, or add the following options to the BackupPC connection settings:
-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null