{"id":10374,"date":"2021-09-10T23:36:09","date_gmt":"2021-09-10T20:36:09","guid":{"rendered":"https:\/\/kifarunix.com\/?p=10374"},"modified":"2024-03-18T14:10:06","modified_gmt":"2024-03-18T11:10:06","slug":"install-backuppc-on-debian-11","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-backuppc-on-debian-11\/","title":{"rendered":"Install BackupPC on Debian 11"},"content":{"rendered":"\n<p>In this guide, we will learn how to install BackupPC on Debian 11.&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/backuppc.github.io\/backuppc\/\" target=\"_blank\">BackupPC<\/a>&nbsp;is a free, high-performance enterprise-grade backup software suite with a web-based frontend that can be used for backing up Linux, Windows and mac OSXs PCs and laptops to a server\u2019s disk.<\/p>\n\n\n\n<p>BackupPC features:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Clever pooling scheme minimizes disk storage and disk I\/O. Identical files across multiple backups of the same or different PC are stored only once resulting in substantial savings in disk storage and disk writes. Also known as &#8220;data deduplication&#8221;.<\/li>\n\n\n\n<li>Optional compression provides additional reductions in storage. CPU impact of compression is low since only new files (those not already in the pool) need to be compressed.<\/li>\n\n\n\n<li>A powerful http\/cgi user interface allows administrators to view log files, configuration, current status and allows users to initiate and cancel backups and browse and restore files from backups very quickly.<\/li>\n\n\n\n<li>No client-side software is needed. On WinXX the smb protocol is used. On Linux or Unix clients, rsync or tar (over ssh\/rsh\/nfs) can be used<\/li>\n\n\n\n<li>Flexible restore options. Single files can be downloaded from any backup directly from the CGI interface. Zip or Tar archives for selected files or directories can also be downloaded from the CGI interface.<\/li>\n\n\n\n<li>BackupPC supports mobile environments where laptops are only intermittently connected to the network and have dynamic IP addresses (DHCP).<\/li>\n\n\n\n<li>Flexible configuration parameters allow multiple backups to be performed in parallel.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#installing-backup-pc-on-debian-11\">Installing BackupPC on Debian 11<\/a><ul><li><a href=\"#install-backup-pc\">Install BackupPC<\/a><\/li><li><a href=\"#choose-web-server\">Choose Web Server<\/a><\/li><li><a href=\"#web-administrator-credentials\">Web Administrator Credentials<\/a><\/li><\/ul><\/li><li><a href=\"#configuring-backup-pc-server-on-debian-11\">Configuring BackupPC Server on Debian 11<\/a><ul><li><a href=\"#define-backup-pc-backup-user-and-backup-protocol\">Define BackupPC Backup User and Backup Protocol<\/a><\/li><li><a href=\"#configure-backup-pc-apache-authentication\">Configure BackupPC Apache Authentication<\/a><\/li><li><a href=\"#generate-backup-user-ssh-keys\">Generate Backup User SSH Keys<\/a><\/li><li><a href=\"#create-backup-user-account-on-clients\">Create Backup User Account On Clients<\/a><\/li><li><a href=\"#copy-backup-pc-server-ssh-keys\">Copy BackupPC Server SSH Keys<\/a><\/li><\/ul><\/li><li><a href=\"#accessing-backup-pc-web-user-interface\">Accessing BackupPC Web User Interface<\/a><ul><li><a href=\"#backup-hosts-using-backup-pc\">Backup Hosts using BackupPC<\/a><\/li><li><a href=\"#related-tutorials\">Related Tutorials<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-backup-pc-on-debian-11\">Installing BackupPC on Debian 11<\/h2>\n\n\n\n<p>Update and upgrade your system packages.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update<\/code><\/pre>\n\n\n\n<pre id=\"block-23bb1ac9-3a5f-4556-8b30-10acfbba3dc4\" class=\"wp-block-preformatted\">apt upgrade<\/pre>\n\n\n\n<p>Once the system update is done, proceed to install BackupPC.<\/p>\n\n\n\n<p>BackupPC is usually available on the default APT repositories:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-cache policy backuppc<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>backuppc:\n  Installed: (none)\n  Candidate: 4.4.0-3\n  Version table:\n     4.4.0-3 500\n        500 http:\/\/deb.debian.org\/debian bullseye\/main amd64 Packages<\/code><\/pre>\n\n\n\n<p>As of this writing, BackupPC 4.4.0 is the current release. The above confirms that the default Debian 11 repos provide the latest BackupPC packages.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-backup-pc\">Install BackupPC<\/h3>\n\n\n\n<p>Hence, BackupPC can be installed using the package,&nbsp;<code>backuppc<\/code> by running the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install -y backuppc<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"choose-web-server\">Choose Web Server<\/h3>\n\n\n\n<p>During the installation, you will be prompted to choose the web server to be used by BackupPC. Apache web server is used in this guide.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1337\" height=\"331\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/backuppc-web-server.png\" alt=\"Install BackupPC on Debian 11\" class=\"wp-image-10383\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/backuppc-web-server.png?v=1631299727 1337w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/backuppc-web-server-768x190.png?v=1631299727 768w\" sizes=\"(max-width: 1337px) 100vw, 1337px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"web-administrator-credentials\">Web Administrator Credentials<\/h3>\n\n\n\n<p>A default BackupPC administrative user,&nbsp;<code>backuppc<\/code>, and its password is also created during the installation. This user is used to administer various tasks such as access to BackupPC web dashboard, carry out backups etc.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/web-admin-creds.png\" class=\"td-modal-image\"><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1883\" height=\"412\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/web-admin-creds.png\" alt=\"Install BackupPC on Debian 11\" class=\"wp-image-10384\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/web-admin-creds.png?v=1631299746 1883w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/web-admin-creds-768x168.png?v=1631299746 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/web-admin-creds-1536x336.png?v=1631299746 1536w\" sizes=\"(max-width: 1883px) 100vw, 1883px\" \/><\/figure><\/a><\/div>\n\n\n\n<p>You can choose to copy the password provided or you can proceed and reset the password later by executing the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>htpasswd \/etc\/backuppc\/htpasswd backuppc<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"configuring-backup-pc-server-on-debian-11\">Configuring BackupPC Server on Debian 11<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"define-backup-pc-backup-user-and-backup-protocol\">Define BackupPC Backup User and Backup Protocol<\/h3>\n\n\n\n<p>BackupPC uses different protocols to get backup data from devices being backed up:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>smb<\/strong>&nbsp;\u2013 used for backing up windows machines<\/li>\n\n\n\n<li><strong>tar<\/strong>&nbsp;\u2013 used for backing up Linux\/Unix\/MacOSX systems<\/li>\n\n\n\n<li><strong>rsync<\/strong>&nbsp;\u2013 used for backing up Linux\/Unix\/MacOSX systems. This can also be used to backup Windows systems.<\/li>\n<\/ul>\n\n\n\n<p>In this tutorial we are going to configure BackupPC to use the <strong>rsync<\/strong> protocol as a backup method.<\/p>\n\n\n\n<p>This is customizable per client basis as well.<\/p>\n\n\n\n<p>Also, by default, BackupPC is using root user run backup tasks. However, in this guide, we are going to use a&nbsp;<code>backuppc<\/code>&nbsp;user to execute backup tasks.<\/p>\n\n\n\n<p>If you happen to change the backup user, edit BackupPC configuration file,&nbsp;<code>\/etc\/backuppc\/config.pl<\/code>&nbsp;and replace the&nbsp;<strong>root<\/strong>&nbsp;user with a user you are using for backup under the&nbsp;<strong>Rsync\/Rsyncd Configuration.<\/strong> <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sed -i '\/RsyncSshArgs\/s\/-l root\/-l backuppc\/' \/etc\/backuppc\/config.pl<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-backup-pc-apache-authentication\">Configure BackupPC Apache Authentication<\/h3>\n\n\n\n<p>BackupPC uses htpasswd user files to restrict access to web interface. <\/p>\n\n\n\n<p>As such, you require a valid user in order to authenticate.<\/p>\n\n\n\n<p>The Web authentication user and its hashed credential password is stored under the&nbsp;<code>\/etc\/backuppc\/htpasswd<\/code>.<\/p>\n\n\n\n<p>You can reset the password by running;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>htpasswd \/etc\/backuppc\/htpasswd backuppc<\/code><\/pre>\n\n\n\n<p>Allow external access to BackupPC, which is set to only allow connections from localhost.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sed -i 's\/local\/all granted\/' \/etc\/backuppc\/apache.conf<\/code><\/pre>\n\n\n\n<p>This is how the BackupPC Apache config file looks like without comment lines;<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>\n&lt;pre class=\"scroll-box\"&gt;\nAlias \/backuppc \/usr\/share\/backuppc\/cgi-bin\/\n\n&lt;Directory \/usr\/share\/backuppc\/cgi-bin\/&gt;\n\tAllowOverride None\n\n\t\t\t\t\t\n\tOptions ExecCGI FollowSymlinks\n\tAddHandler cgi-script .cgi\n\tDirectoryIndex index.cgi\n\n        AuthUserFile \/etc\/backuppc\/htpasswd\n\tAuthType basic\n\tAuthName \"BackupPC admin\"\n\n        &lt;RequireAll&gt;\n\t\tRequire all granted\n\n\t\tRequire valid-user\n\t&lt;\/RequireAll&gt;\n&lt;\/Directory&gt;\n&lt;\/pre&gt;\n<\/code><\/pre>\n\n\n\n<p>Next, restart both backuppc and Apache service to apply the changes made above.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart backuppc apache2<\/code><\/pre>\n\n\n\n<p>If UFW is running, allow external access to Apache.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ufw allow WWW<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"generate-backup-user-ssh-keys\">Generate Backup User SSH Keys<\/h3>\n\n\n\n<p>For rsync to work, BackupPC requires passwordless SSH login for&nbsp;<strong>backuppc<\/strong>&nbsp;user to every client it will be getting backup data from, as per this setup.<\/p>\n\n\n\n<p>This also means that you should create a dedicated backuppc user on the hosts you need to backup, at least using the rsync protocol.<\/p>\n\n\n\n<p>As a result, switch to backuppc user on BackupPC server and generate passwordless ssh keys and copy them to every host you want to backup.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>su - backuppc<\/code><\/pre>\n\n\n\n<p>This will opens up the sh shell. You can run bash command to launch bash shell.<\/p>\n\n\n\n<p>Generate SSH key pair by running the following command;<\/p>\n\n\n\n<pre id=\"block-091a8dec-81b9-46a2-8c2b-7880177325dc\" class=\"wp-block-code\"><code>ssh-keygen<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>\nGenerating public\/private rsa key pair.\nEnter file in which to save the key (\/var\/lib\/backuppc\/.ssh\/id_rsa): \nCreated directory '\/var\/lib\/backuppc\/.ssh'.\nEnter passphrase (empty for no passphrase): <strong>PRESS ENTER<\/strong>\nEnter same passphrase again: <strong>PRESS ENTER<\/strong>\nYour identification has been saved in \/var\/lib\/backuppc\/.ssh\/id_rsa\nYour public key has been saved in \/var\/lib\/backuppc\/.ssh\/id_rsa.pub\nThe key fingerprint is:\nSHA256:MjPsb8texAqx1uc0u2X3Pk7kJRftu4KiJPeoD4RnNcQ backuppc@bullseye.kifarunix-demo.com\nThe key's randomart image is:\n+---[RSA 3072]----+\n|      ..         |\n|      .E        .|\n|      .o       ..|\n|    ...+..     ..|\n|   . +X S *   ..+|\n|    +o * * o  ooo|\n|     o.o. + + .+ |\n|      =o+o = o.o.|\n|     .o**oo   o++|\n+----[SHA256]-----+\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-backup-user-account-on-clients\">Create Backup User Account On Clients<\/h3>\n\n\n\n<p>Next, login to the system servers you want to backup and create an account on the client dedicated for backup purposes for example, create a backuppc user account on remote client and copy the public key to that user.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>useradd -m backuppc<\/code><\/pre>\n\n\n\n<pre id=\"block-9caafdd3-de77-4e9c-90ba-fdd996ffa653\" class=\"wp-block-preformatted\">passwd backuppc<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"copy-backup-pc-server-ssh-keys\">Copy BackupPC Server SSH Keys<\/h3>\n\n\n\n<p>Now logout from client host and copy the SSH public key for backuppc user on BackupPC server to backuppc user on the client. Copy the keys while logged as backuppc user.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ssh-copy-id backuppc@192.168.43.214<\/code><\/pre>\n\n\n\n<p>Where 192.168.43.214 is my client IP address. Once you copy the key, you should be able to login without being prompted for a password.<\/p>\n\n\n\n<p>Now, test the login to client with the backup user to ensure user can successfully login to client. You can use root user if you didn\u2019t make the changes above.<\/p>\n\n\n\n<pre id=\"block-a250f279-7faf-4e42-8aa3-4b94c0f17e80\" class=\"wp-block-code\"><code>su - backuppc<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh -l backuppc client_IP whoami<\/code><\/pre>\n\n\n\n<p>Sample output;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>backuppc<\/code><\/pre>\n\n\n\n<p>or<\/p>\n\n\n\n<pre id=\"block-075e55d4-9c3c-4be4-8f88-bfde572e8586\" class=\"wp-block-code\"><code>ssh -l root client_IP whoami<\/code><\/pre>\n\n\n\n<p>Sample output<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>root<\/code><\/pre>\n\n\n\n<p>If you changed you backup user to non-root user, Login to the client host as an administrative user and allow the non-user to run the rsync command without being prompted for password by adding the user to sudoers list.&nbsp;<code>backuppc<\/code>&nbsp;user is used in this case.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh admin@client_IP<\/code><\/pre>\n\n\n\n<p>Run the command below&nbsp;to find the absolute path of rsync.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>which rsync<\/code><\/pre>\n\n\n\n<p>If rsync command is not installed, run the following commands to install it.<\/p>\n\n\n\n<pre id=\"block-d93da83d-289f-403a-a724-d6ba0d79135e\" class=\"wp-block-code\"><code>apt install rsync -y<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install rsync -y<\/code><\/pre>\n\n\n\n<p>Next, update the sudoers file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"backuppc ALL=NOPASSWD: \/usr\/bin\/rsync\" | sudo tee \/etc\/sudoers.d\/backuppc<\/code><\/pre>\n\n\n\n<p>You may also want to disable ssh agent-forwarding, port-forwarding or even the pty for backuppc user logging in to the client from BackupPC.<\/p>\n\n\n\n<p>To do this, login to client, edit the ssh authorized key file and add the line below before the&nbsp;<code>ssh-rsa<\/code><strong>&nbsp;<\/strong>keyword.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from=\u201dbackuppc_server_ip\u201d,no-agent-forwarding,no-port-forwarding,no-pty<\/code><\/pre>\n\n\n\n<p>Replace the&nbsp;<code>backuppc_server_ip<\/code>&nbsp;with the IP address of the backuppc server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim \/home\/backuppc\/.ssh\/authorized_keys<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>from=\"192.168.43.154\",no-agent-forwarding,no-port-forwarding,no-pty<\/strong> ssh-rsa AAAAB3NzaC1SSSc2EAAAADAQABAAABAQDYuDSNIPxQL6hNh6FeW4wj3hYJ+p42SD9BGVg5Rn6HuzIAi1zrU2pRceQ5VDRj5nXxSjs+oJJ4lXZ\/HTaUQDBFysVyIe9Sc4Z9Z5nmmmGWIJnKWfuvzSYbV2JbSJjcTfUPjH32DOvU+4PMdil\/4GjKW7pr8fyywl4XuhZMU6RfVw0LgzYuqzUQX5D6Q4MsgIN4HGqBsnVIBvSz2TcPc0hovtfKQMmUBQvp7L9Ob3AKuG01ZZznQ8Q6+eGL7EJHnS30h\/FLM8rKBxsvI6El8xog2E0\/ALnNGKWsg2NTEqWqQ3xpUDEnA6exgHEm+2xCuKAy1sAuSJHJHScUMLZIUE36t2+nB0Vn backuppc@backuppc.kifarunix-demo.com<\/code><\/pre>\n\n\n\n<p>Next, you can also configure ssh logins to backuppc user accounts on clients hosts from the BackupPC server only. This can be done by editing&nbsp;<code>sshd_config<\/code>&nbsp;file on the client and configuring as shown below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo vim \/etc\/ssh\/sshd_config<\/code><\/pre>\n\n\n\n<p>Add the line below to SSHd configuration to allow login to the client as backuppc from the BackupPC server only.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Match Host 192.168.43.154\n         AllowUsers backuppc<\/code><\/pre>\n\n\n\n<p>Reload SSH configurations<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl reload ssh<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"accessing-backup-pc-web-user-interface\">Accessing BackupPC Web User Interface<\/h2>\n\n\n\n<p>Once the configuration is done, login to BackupPC via browser using the address,&nbsp;<code>http:\/\/backuppc_server_IP or hostname\/backuppc<\/code>.<\/p>\n\n\n\n<p>You are prompted to authenticate before accessing the dashboard.<\/p>\n\n\n\n<p>Use the <strong><code>backuppc<\/code><\/strong> web user credentials set above.<\/p>\n\n\n\n<p>When you login, you will land on BackupPC dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1861\" height=\"714\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/backuppc-dashboard.png\" alt=\"\" class=\"wp-image-10386\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/backuppc-dashboard.png?v=1631305693 1861w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/backuppc-dashboard-768x295.png?v=1631305693 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/backuppc-dashboard-1536x589.png?v=1631305693 1536w\" sizes=\"(max-width: 1861px) 100vw, 1861px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"backup-hosts-using-backup-pc\">Backup Hosts using BackupPC<\/h3>\n\n\n\n<p>If you noticed, the localhost, which is the server running backuppc is already added as one of the backup hosts.<\/p>\n\n\n\n<p>The backup tried to run but failed, due to some default backup protocol (tar) errors.<\/p>\n\n\n\n<p>Since we are using rsync as a backup protocol in this guide, you need to update this for the localhost backup to run.<\/p>\n\n\n\n<p>Hence, <strong>click on hostname (localhost for example)<\/strong> &gt; <strong>edit config &gt; Xfer<\/strong> &gt; <strong>XferMethod &gt; Rsync<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1896\" height=\"654\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/backup-protocol.png\" alt=\"\" class=\"wp-image-10387\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/backup-protocol.png?v=1631305724 1896w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/backup-protocol-768x265.png?v=1631305724 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/backup-protocol-1536x530.png?v=1631305724 1536w\" sizes=\"(max-width: 1896px) 100vw, 1896px\" \/><\/figure>\n\n\n\n<p>Update <strong>RsyncShareName<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1903\" height=\"833\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/rsync-share-name.png\" alt=\"\" class=\"wp-image-10388\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/rsync-share-name.png?v=1631305751 1903w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/rsync-share-name-768x336.png?v=1631305751 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/rsync-share-name-1536x672.png?v=1631305751 1536w\" sizes=\"(max-width: 1903px) 100vw, 1903px\" \/><\/figure>\n\n\n\n<p>Click <strong>Save<\/strong>.<\/p>\n\n\n\n<p>Reset the local account password for backuppc user.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>passwd backuppc<\/code><\/pre>\n\n\n\n<p>Keep the password save.<\/p>\n\n\n\n<p>Install rsync and allow BackupPC user to execute rsync with sudo without password.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install rsync<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"backuppc ALL=NOPASSWD: $(which rsync)\" | sudo tee \/etc\/sudoers.d\/backuppc<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>su - backuppc<\/code><\/pre>\n\n\n\n<p>Copy the password generated above to server itself.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh-copy-id backuppc@localhost<\/code><\/pre>\n\n\n\n<p>Initiate localhost backup.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1901\" height=\"583\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/backup-localhost.png\" alt=\"\" class=\"wp-image-10389\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/backup-localhost.png?v=1631305826 1901w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/backup-localhost-768x236.png?v=1631305826 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/backup-localhost-1536x471.png?v=1631305826 1536w\" sizes=\"(max-width: 1901px) 100vw, 1901px\" \/><\/figure>\n\n\n\n<p>Once the backup is running, you can see status under status menu.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1911\" height=\"565\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/host-summary.png\" alt=\"\" class=\"wp-image-10390\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/host-summary.png?v=1631305862 1911w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/host-summary-768x227.png?v=1631305862 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/09\/host-summary-1536x454.png?v=1631305862 1536w\" sizes=\"(max-width: 1911px) 100vw, 1911px\" \/><\/figure>\n\n\n\n<p>You can now add more hosts to backup.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"related-tutorials\">Related Tutorials<\/h3>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/backup-windows-system-via-smb-using-backuppc\/\" target=\"_blank\">Backup Windows System via SMB Using BackupPC<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/backup-windows-system-with-backuppc-using-rsyncd\/\" target=\"_blank\">Backup Windows System with BackupPC Using Rsyncd<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we will learn how to install BackupPC on Debian 11.&nbsp;BackupPC&nbsp;is a free, high-performance enterprise-grade backup software suite with a web-based frontend that<\/p>\n","protected":false},"author":3,"featured_media":9520,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121],"tags":[4073,3958,4074,4072],"class_list":["post-10374","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-backup-server-debian-11","tag-debian-11","tag-install-backuppc","tag-install-backuppc-debian-11","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/10374"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=10374"}],"version-history":[{"count":4,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/10374\/revisions"}],"predecessor-version":[{"id":21663,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/10374\/revisions\/21663"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/9520"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=10374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=10374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=10374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}