wiki.ipfire.org

The community-maintained documentation platform of IPFire

User Tools

Site Tools


addons:backuppc:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
addons:backuppc:start [2011/05/08 21:26]
Erik Kapfer
addons:backuppc:start [2018/09/21 02:22] (current)
Jon Updated webpage by removing ":en"
Line 1: Line 1:
 ====== BackupPC ====== ====== BackupPC ======
  
-By the usage of IPFire as a home server with the [[en:​addons:​samba:​start|Samba]]-AddOn the question of a backup of all user data comes up. Also the computers in the network should be backed up regularly. Therefor BackupPC advertise itself, because it manages all the files in a pool and same files from different computers will be realized and thus not double saved. BackupPC provides also many additional features, these can be found in the [[http://​backuppc.sourceforge.net/​faq/​BackupPC.html|documentation]] of BackupPC.+By the usage of IPFire as a home server with the [[:​addons:​samba:​start|Samba]]-AddOn the question of a backup of all user data comes up. Also the computers in the network should be backed up regularly. Therefor BackupPC advertise itself, because it manages all the files in a pool and same files from different computers will be realized and thus not double saved. BackupPC provides also many additional features, these can be found in the [[http://​backuppc.sourceforge.net/​faq/​BackupPC.html|documentation]] of BackupPC.
  
 The following describes how [[http://​backuppc.sourceforge.net|BackupPC]] can be configured on the IPFire. The following describes how [[http://​backuppc.sourceforge.net|BackupPC]] can be configured on the IPFire.
Line 10: Line 10:
   * samba (if you want to work with the [[wp>​Server_Message_Block|smb]] protocol)   * samba (if you want to work with the [[wp>​Server_Message_Block|smb]] protocol)
  
-They can be installed, like any other Addon over [[:en:​configuration:​ipfire:​pakfire:​|Pakfire]].+They can be installed, like any other Addon over [[:​configuration:​ipfire:​pakfire:​|Pakfire]].
  
 ===== Install the missing Perl-modules ===== ===== Install the missing Perl-modules =====
Line 24: Line 24:
 The "​File::​rsyncp"​ is only necessary ​ for the rsync protocol, SMB works also without this module. The installation of this module is somewhat more complicated,​ because it is not only pure Perl code, but also binaries, which naturally must be compiled first. These can be downloaded for IPFire 2.5 core 33 from {{:​de:​addons:​backuppc:​file-rsyncp-068.zip|here}}. The "​File::​rsyncp"​ is only necessary ​ for the rsync protocol, SMB works also without this module. The installation of this module is somewhat more complicated,​ because it is not only pure Perl code, but also binaries, which naturally must be compiled first. These can be downloaded for IPFire 2.5 core 33 from {{:​de:​addons:​backuppc:​file-rsyncp-068.zip|here}}.
  
-Who would like to compile them on his own, needs to setup a Development System, download the source code and build the system. How this works can be checked in [[:en:development:​build|here]].+Who would like to compile them on his own, needs to setup a Development System, download the source code and build the system. How this works can be checked in [[:devel:start|here]].
 Change to the build-system with: Change to the build-system with:
  
Line 59: Line 59:
  
  
-You need to copy the folder ​///​blib/​lib/​File/​and the whole content in the path ///​usr/​lib/​perl5/​site_perl/​5.12.3/​i586-linux-thread-multi/​// (there are the *.pm files) and change the file permission with a:+You need to copy the folder ​**/​blib/​lib/​File/​** and the whole content in the path **/​usr/​lib/​perl5/​site_perl/​5.12.3/​i586-linux-thread-multi/​** (there are the *.pm files) and change the file permission with a:
  
   chmod -R 555 /​blib/​lib/​File   chmod -R 555 /​blib/​lib/​File
  
-You need also to copy the folder /​blib/​arch/​auto/​File (including all subdirectories with the *.bs and *.so files in it) plus the folder ​///​blib/​lib/​auto/​File/​// (the autosplit.ix-Files) to ///​usr/​lib/​perl5/​site_perl/​5.12.3/​i586-linux-thread-multi/​auto/​// and change the file permissions to:+You need also to copy the folder ​**/​blib/​arch/​auto/​File** (including all subdirectories with the *.bs and *.so files in it) plus the folder ​**/​blib/​lib/​auto/​File/​** (the autosplit.ix-Files) to **/​usr/​lib/​perl5/​site_perl/​5.12.3/​i586-linux-thread-multi/​auto/​** and change the file permissions to:
  
   chmod -R 755 /​blib/​lib/​File   chmod -R 755 /​blib/​lib/​File
  
-It should then looks like this:+__It should then looks like this:__ 
 +<​code>​
   * /​usr/​lib/​perl5/​site_perl/​5.12.3/​i586-linux-thread-multi/​File/​RsyncP.pm   * /​usr/​lib/​perl5/​site_perl/​5.12.3/​i586-linux-thread-multi/​File/​RsyncP.pm
   * /​usr/​lib/​perl5/​site_perl/​5.12.3/​i586-linux-thread-multi/​File/​RsyncP/​Digest.pm   * /​usr/​lib/​perl5/​site_perl/​5.12.3/​i586-linux-thread-multi/​File/​RsyncP/​Digest.pm
Line 78: Line 79:
   * /​usr/​lib/​perl5/​site_perl/​5.12.3/​i586-linux-thread-multi/​auto/​File/​RsyncP/​FileList/​FileList.so   * /​usr/​lib/​perl5/​site_perl/​5.12.3/​i586-linux-thread-multi/​auto/​File/​RsyncP/​FileList/​FileList.so
   * /​usr/​lib/​perl5/​site_perl/​5.12.3/​i586-linux-thread-multi/​auto/​File/​RsyncP/​FileList/​autosplit.ix   * /​usr/​lib/​perl5/​site_perl/​5.12.3/​i586-linux-thread-multi/​auto/​File/​RsyncP/​FileList/​autosplit.ix
 +</​code>​
 ---------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------
  
Line 85: Line 86:
 ===== Download BackupPC ===== ===== Download BackupPC =====
  
-Download the latest version of BackupPC from [[http://​sourceforge.net/​projects/​backuppc/​|HERE]] and copy it via [[:en:​tools:​winscp|WinSCP]] onto the IPFire into the directory ///root/// and unpack it with "tar xvf ……tar.gz"​. Change then into the the directory and execute: ​+Download the latest version of BackupPC from [[http://​sourceforge.net/​projects/​backuppc/​|HERE]] and copy it via [[:​tools:​winscp|WinSCP]] onto the IPFire into the directory ///root/// and unpack it with "tar xvf ……tar.gz"​. Change then into the the directory and execute: ​
  
   ./​configure.pl   ./​configure.pl
Line 109: Line 110:
   touch /​etc/​init.d/​BackupPC   touch /​etc/​init.d/​BackupPC
  
-<box 90% round green|File: /​etc/​init.d/​BackupPC+<file bash File: /​etc/​init.d/​BackupPC>​
-<code>+
 #!/bin/sh #!/bin/sh
 # #
Line 161: Line 161:
  
 exit 0 exit 0
-</code> +</file>
-</box>+
  
 Set the owner and the permission: Set the owner and the permission:
Line 187: Line 186:
 The webinterface is running on a virtual host. Create a file named BackupPC.conf into ///​etc/​httpd/​conf/​vhosts.d//​ the file should contain the following content: The webinterface is running on a virtual host. Create a file named BackupPC.conf into ///​etc/​httpd/​conf/​vhosts.d//​ the file should contain the following content:
  
-  touch/​etc/​httpd/​conf/​vhosts.d/​BackupPC.conf+  touch /​etc/​httpd/​conf/​vhosts.d/​BackupPC.conf
  
-<box 90% round green|File: /​etc/​httpd/​conf/​vhosts.d/​BackupPC.conf+<file bash File: /​etc/​httpd/​conf/​vhosts.d/​BackupPC.conf>​
-<code>+
 Listen 1009 Listen 1009
  
Line 209: Line 207:
 setenv REMOTE_USER backuppc setenv REMOTE_USER backuppc
 </​VirtualHost>​ </​VirtualHost>​
-</code> +</file>
-</box>+
  
 Set the owner and the permission: Set the owner and the permission:
Line 218: Line 215:
  
 Thereby there will be no user query generated and the access is for now on available! For a regular operation restrict the access rights! In here it concerns firstly that it runs. Thereby there will be no user query generated and the access is for now on available! For a regular operation restrict the access rights! In here it concerns firstly that it runs.
 +
 +To make the changes effective and to activate BackupPC´s web interface, restart the Apache Web server. This is done with a:
 +
 +  /​etc/​init.d/​apache restart
  
 Since now you can reach the webinterface under **http://​ipfire:​1009/​cgi-bin/​BackupPC_Admin** . Since now you can reach the webinterface under **http://​ipfire:​1009/​cgi-bin/​BackupPC_Admin** .
Line 269: Line 270:
 Which drives and directories can be accessed must be defined in the rsync.conf . Which drives and directories can be accessed must be defined in the rsync.conf .
  
-<​file>​+<​file ​bash File: rsync.conf>
 use chroot = false use chroot = false
 strict modes = false strict modes = false
Line 285: Line 286:
 </​file>​ </​file>​
  
-If a firewall is running, open up the port 873 . If you want to use BackupPC over IPFire´s webinterface,​ this [[en:​addons:​sidemenu_ex:​start|wiki]] might be interesting for you.+If a firewall is running, open up the port 873 . If you want to use BackupPC over IPFire´s webinterface,​ this [[:​addons:​sidemenu_ex:​start|wiki]] might be interesting for you.
  
  
addons/backuppc/start.1304889986.txt.bz2 · Last modified: 2011/05/08 21:26 by Erik Kapfer