{"id":708,"date":"2019-01-24T12:34:39","date_gmt":"2019-01-24T09:34:39","guid":{"rendered":"https:\/\/artem.services\/?p=534"},"modified":"2019-02-20T00:45:25","modified_gmt":"2019-02-19T21:45:25","slug":"backuppc-d1-83-d1-81-d1-82-d0-b0-d0-bd-d0-be-d0-b2-d0-ba-d0-b0","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=708&lang=en","title":{"rendered":"BackupPC &#8212; Installation"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"wp-image-543 aligncenter\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/01\/BackupPC-Logo.gif\" alt=\"\" width=\"448\" height=\"138\" \/><\/p>\n<h4>Installation<\/h4>\n<p><strong>Deb<\/strong> systems:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\napt install backuppc\r\n<\/pre>\n<p><strong>CentOS<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nyum install backuppc\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Select in the &quot;<strong>Postfix Configuration<\/strong>&quot; &quot;<strong>No configuration<\/strong>&quot;, if you do not need notifications by mail.<\/p>\n<p>Then they write to us, at what <strong>URL<\/strong> <strong>BackupPC<\/strong> will be available, as well as <strong>login\/password<\/strong> for access.<\/p>\n<p>Password can be changed:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nhtpasswd \/etc\/backuppc\/htpasswd backuppc\r\n<\/pre>\n<p>If you change the user, then the <strong>Web<\/strong> interface may have no fields for configuring <strong>BackupPC<\/strong>, since such a user must be in the system and specified in the file: &quot;<strong>\/etc\/backuppc\/config.pl<\/strong>&quot;<\/p>\n<p><!--more--><\/p>\n<p>I didn\u2019t show the interface at all from<strong> Ubuntu 18.04<\/strong> from the <strong>Web<\/strong> box, I didn\u2019t deal with <strong>Apache2<\/strong>, and picked up <a href=\"https:\/\/artem.services\/?p=509&amp;lang=en\" target=\"_blank\" rel=\"noopener\">Nginx<\/a>.<\/p>\n<p>Create an <strong>SSH<\/strong> key on the server to connect to clients:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nssh-keygen -t rsa -f \/var\/lib\/backuppc\/key\r\n<\/pre>\n<p>passphrase not set.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmkdir \/var\/lib\/backuppc\/.ssh\r\nchmod 700 \/var\/lib\/backuppc\/.ssh\r\ncp \/var\/lib\/backuppc\/key \/var\/lib\/backuppc\/.ssh\r\nchmod 600 \/var\/lib\/backuppc\/.ssh\/key\r\nchown -R backuppc:backuppc \/var\/lib\/backuppc\/.ssh\/\r\n<\/pre>\n<h4><\/h4>\n<h4><strong>Client setup<\/strong><\/h4>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nadduser backuppc\r\nmkdir \/home\/backuppc\/.ssh\r\nchmod 700 \/home\/backuppc\/.ssh\r\n<\/pre>\n<p>In the file &quot;<strong>\/home\/backuppc\/.ssh\/authorized_keys<\/strong>&quot; copy the contents of &quot;<strong>key.pub<\/strong>&quot; from the server.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nchmod 600 \/home\/backuppc\/.ssh\/authorized_keys\r\nchown -R backuppc:backuppc \/home\/backuppc\/.ssh\r\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nbackuppc             ALL = NOPASSWD: \/usr\/bin\/rsync, \/usr\/bin\/env, \/bin\/tar\r\n<\/pre>\n<p>&nbsp;<\/p>\n<blockquote><p>When trying to backup, <strong>BackupPC<\/strong> will generate an error, since it cannot add host information to the &quot;<strong>known_hosts<\/strong>&quot; file, for this you need to connect from the server via <strong>SSH<\/strong> to the client as this user, or add the following options to the <strong>BackupPC<\/strong> connection settings:<\/p><\/blockquote>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n-o StrictHostKeyChecking=no -o UserKnownHostsFile=\/dev\/null\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Installation Deb systems: CentOS: &nbsp; Select in the &quot;Postfix Configuration&quot; &quot;No configuration&quot;, 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: If you change the user, then the Web interface may have no fields &hellip; <a href=\"https:\/\/artem.services\/?p=708&#038;lang=en\" class=\"more-link\">\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0447\u0438\u0442\u0430\u0442\u044c<span class=\"screen-reader-text\"> &quot;BackupPC &#8212; Installation&quot;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[477],"tags":[479,503],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/708"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=708"}],"version-history":[{"count":3,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/708\/revisions"}],"predecessor-version":[{"id":711,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/708\/revisions\/711"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}