BACKUP - Installation de backuppc sur Corni : Différence entre versions

De PedroWiki
(Nouvelle page : = Introduction = Article "bloc-note" sur l'installation de BackupPC sur Corni (home.peaudeau.fr). Objectif: * Assurer les backups de rps.pedrono.fr = Installation de BackupPC = =...)
 
Ligne 119 : Ligne 119 :
 
  jules@corni:~$ sudo apt-get install lynx
 
  jules@corni:~$ sudo apt-get install lynx
 
  jules@corni:~$ sudo apt-get install ncftp
 
  jules@corni:~$ sudo apt-get install ncftp
 +
 +
Reprise de l'installer:
 +
--> Compression level [0]? 3
 +
 +
BackupPC has a powerful CGI perl interface that runs under Apache.
 +
A single executable needs to be installed in a cgi-bin directory.
 +
This executable needs to run as set-uid backuppc, or
 +
it can be run under mod_perl with Apache running as user backuppc.
 +
 +
Leave this path empty if you don't want to install the CGI interface.
 +
 +
--> CGI bin directory (full path) []? /home/jules/www/cgi/
 +
 +
BackupPC's CGI script needs to display various GIF images that
 +
should be stored where Apache can serve them.  They should be
 +
placed somewhere under Apache's DocumentRoot.  BackupPC also
 +
needs to know the URL to access these images.  Example:
 +
 +
    Apache image directory:  /usr/local/apache/htdocs/BackupPC
 +
    URL for image directory: /BackupPC
 +
 +
The URL for the image directory should start with a slash.
 +
 +
--> Apache image directory (full path) []?

Version du 22 mars 2009 à 18:39

Introduction

Article "bloc-note" sur l'installation de BackupPC sur Corni (home.peaudeau.fr).

Objectif:

  • Assurer les backups de rps.pedrono.fr

Installation de BackupPC

Téléchargement des sources

Il n'existe pas de distribution packagée pour Debian/Ubuntu. L'installation se fera donc à partir des sources.

Téléchargement:

jules@corni:/home/jules$ wget http://www.zmanda.com/downloads/community/BackupPC/3.1.1beta/Source/BackupPC-3.1.1beta.tar.gz

Décompression:

jules@corni:/home/jules$ tar xvzf BackupPC-3.1.1beta.tar.gz

Lancement de l'installation

jules@corni:/home/jules/BackupPC-3.1.1beta$ sudo perl ./configure.pl 
[sudo] password for jules: 

Is this a new installation or upgrade for BackupPC?  If this is
an upgrade please tell me the full path of the existing BackupPC
configuration file (eg: /etc/BackupPC/config.pl).  Otherwise, just
hit return.

--> Full path to existing main config.pl []? 

I found the following locations for these programs:

    bzip2        => /bin/bzip2
    cat          => /bin/cat
    df           => /bin/df
    gtar/tar     => /bin/tar
    gzip         => /bin/gzip
    hostname     => /bin/hostname
    nmblookup    => /usr/bin/nmblookup
    par2         => 
    perl         => /usr/bin/perl
    ping         => /bin/ping
    rsync        => /usr/bin/rsync
    sendmail     => /usr/sbin/sendmail
    smbclient    => /usr/bin/smbclient
    split        => /usr/bin/split
    ssh/ssh2     => /usr/bin/ssh 

--> Are these paths correct? [y]? y

Please tell me the hostname of the machine that BackupPC will run on.

--> BackupPC will run on host [corni]? home.peaudeau.fr

BackupPC should run as a dedicated user with limited privileges.  You
need to create a user.  This user will need read/write permission on
the main data directory and read/execute permission on the install
directory (these directories will be setup shortly).

The primary group for this user should also be chosen carefully.
The data directories and files will have group read permission,
so group members can access backup files.

--> BackupPC should run as user [backuppc]? 

getpwnam() says that user backuppc doesn't exist.  Please
check the name and verify that this user is in the passwd file.

Dans un autre terminal:

jules@corni:~$ sudo useradd backuppc
[sudo] password for jules: 
jules@corni:~$ sudo passwd backuppc
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
jules@corni:~$ 

ATTENTION RESTE A CHOISIR LE BON GROUPE POUR LE USER BACKUPPC

Suite de l'installer:

Please specify an install directory for BackupPC.  This is where the
BackupPC scripts, library and documentation will be installed.

--> Install directory (full path) [/usr/local/BackupPC]?

Please specify a data directory for BackupPC.  This is where all the
PC backup data is stored.  This file system needs to be big enough to
accommodate all the PCs you expect to backup (eg: at least several GB
per machine).

--> Data directory (full path) [/data/BackupPC]? 
BackupPC can use FTP as a transfer protocol.  for this, BackupPC needs
the module Net::FTP::RetrHandle, and highly recommends using
Net::FTP::AutoReconnect.  However, these packages have not made their
way onto the Fedora or Red Hat package servers from CPAN
yet. Net::FTP::AutoReconnect and Net::FTP::RetrHandle have been
bundled with this distribution for use only with BackupPC.

--> Install CPAN Net::FTP::* modules? [y]? 

BackupPC can compress pool files, but it needs the Compress::Zlib
package installed (see www.cpan.org). Compression will provide around a
40% reduction in pool size, at the expense of cpu time.  You can leave
compression off and run BackupPC without compression, in which case you
should leave the compression level at 0 (which means off).  You could
install Compress::Zlib and turn compression on later, but read the
documentation first about how to do this.  Or the better choice is
to quit, install Compress::Zlib, and re-run configure.pl.

--> Compression level [0]? 

Dans un autre terminal, configuration de cpan et installation de Compress::Zlib:

jules@corni:~$ cpan
...
=> Suivi des instruction

La configuration de cpan requiert l'installation d'utilitaires:

jules@corni:~$ sudo apt-get install unzip
jules@corni:~$ sudo apt-get install lynx
jules@corni:~$ sudo apt-get install ncftp

Reprise de l'installer:

--> Compression level [0]? 3

BackupPC has a powerful CGI perl interface that runs under Apache.
A single executable needs to be installed in a cgi-bin directory.
This executable needs to run as set-uid backuppc, or
it can be run under mod_perl with Apache running as user backuppc.

Leave this path empty if you don't want to install the CGI interface.

--> CGI bin directory (full path) []? /home/jules/www/cgi/

BackupPC's CGI script needs to display various GIF images that
should be stored where Apache can serve them.  They should be
placed somewhere under Apache's DocumentRoot.  BackupPC also
needs to know the URL to access these images.  Example:

    Apache image directory:  /usr/local/apache/htdocs/BackupPC
    URL for image directory: /BackupPC

The URL for the image directory should start with a slash.

--> Apache image directory (full path) []?