Backuppc Installation HowTo

Hi Ppl!
This is a fast&dirty installation of Backuppc (afterwards i’ll write a simple configuration howto)

LOOKOUT: if you plan to install Backuppc using the http://mirror.de-labrusse.fr (that’s the best way now) you have to jump directly on the client configuration part of this howto and DO NOT use the installation one

Before start of course the manual http://backuppc.sourceforge.net/faq/BackupPC.html

Let’s go:

  1. Install prerequisites for NethServer:

    yum install nethserver-httpd -y`

  2. Install and disable additional repos (to prevent unwanted updates):

    rpm -ihv http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    sed -i ‘s/enabled=1/enabled=0/’ /etc/yum.repos.d/epel.repo

  3. Proceede with installation:

    yum --enablerepo=epel install backuppc

  4. Define new services according to NethServer default (see developer manual)

    config set backuppc
    service status enabled

    mkdir -p /etc/e-smith/db/configuration/defaults/backuppc
    echo “service” > /etc/e-smith/db/configuration/defaults/backuppc/type
    echo “enabled” > /etc/e-smith/db/configuration/defaults/backuppc/status

  5. Signal new services :

    signal-event runlevel-adjust

  6. Add extra sudoers :

    mkdir -p /etc/e-smith/templates-custom/etc/sudoers

and create the /etc/e-smith/templates-custom/etc/sudoers/60backuppc file
with

Defaults:backuppc    !lecture
backuppc ALL=NOPASSWD:/bin/gtar,/bin/tar

and then run

  signal-event nethserver-base-update
  1. Edit with your favourite editor /etc/httpd/conf.d/BackupPC.conf :

    Change Allow from 127.0.0.1 to all

    Allow from all

  2. Set the password for backuppc user :

    htpasswd -c /etc/BackupPC/apache.users backuppc

  3. Edit with your favourite editor /etc/BackupPC/config.pl and add backuppc user to the admin CGI config:

    $Conf{CgiAdminUsers} = ‘backuppc’;

  4. Restart httpd service and backuppc service

    service httpd restart
    service backuppc restart

  5. Login into the backuppc webpage ( using User: backuppc , Passwd : $yourpassword )

    https://yourserverip/backuppc

Extra Config Settings

a) set mail advisory if something goes wrong (in the main config.pl file)

  1. Full path to the sendmail command. Security caution: normal users
    should not allowed to write to this file or directory.

    $Conf{SendmailPath} = ‘/usr/sbin/sendmail’;

  2. Name to use as the “from” name for email

    $Conf{EMailFromUserName} = ’ put you user here ';

  3. Destination address to an administrative user who will receive a
    nightly email with warnings and errors. If there are no warnings
    or errors then no email will be sent

    $Conf{EMailAdminUserName} = ’ put your admin here ';

4)`Destination domain name for email sent to users

$Conf{EMailUserDestDomain} = ' @FQDN ';

SetUp Windows Clients

A) On Windows Client

  1. Download and Install on your windows client the installer on http://sourceforge.net/projects/backuppc/files/cygwin-rsyncd/3.0.9.0/

  2. Go to C:\rsyncd and edit rsyncd.conf

where :
" auth users = " is the user on windows that can read on the path ( you have to set usr:psw also in the rsyncd.secrets file )

                 "hosts allow =  " is the ip adress of Nethserver
  1. Then restart RsyncServer on windows services

after that open the port 873 on windows firewall

B) On Nethserver

  1. log into the backuppc webpage

  2. add the windows host on “Edit Hosts”

where

Host is ip or netbios/fqdn(mandatory when dhcp is flagged)of the windows machine
Dhcp flagged if the clients have a dinamic ip address
user is the user on backuppc webpage that can browse the backup

  1. Save and on the Admin Option page reload server configuration

4)Select your client on the New Drop Down Menu under Host category

  1. On Edit Confi Page of the client select :

On Xfer : rsyncd method , flag override on both client charset and put " cp1252 " ,
On Rsyncd : path,user and password that you have setted on windows client

  1. Save and on the Admin Option page reload server configuration

Now you can start your first full backup :smiley:

4 Likes

A typo

yum --enablerepo=ok,epel install backuppc
Should be

–enablerepo=epel

I don’t think you need yet a service entry but if you plan to make a rpm that will be needed in the apache configuration.

After the installation are you able to do backups on remote computers throught smb and rsync ???

enablerepo edited :wink:

the service’s registration was made just for keep it in the “nethserver way”

i’ll work to the backup config(and howto) on these days, but i’ve already one(rsync over ssh) in production with 5 ubuntu servers and also a tar on a dat :wink:

Nice…once the howto is done it is easier to make a module…that’s just code

yep , here there are all the dependecies (also the ones of httpd) http://pastebin.com/kLqXkh8X

just some edits & improvements :wink:

Maybe something missing, the backuppc user is not member of the sudoers, I find some tutorials where they talked about this requirement

http://wiki.centos.org/HowTos/BackupPC
http://peektech.net/?p=12

But for now I have not tested.

mmm it’s for tar usage…probably we need to create a sudo policy, i’ll edit the howto

@AbsyntH amazing howto man :smiley: you’re doing a good job here!
Want to install it very soon and I’ll let you how this is going

1 Like

Great job @AbsyntH !
I want to try it asap.

Just a question on the fly: why I should prefer Backuppc to NethServer Backup module?

Thank you for contributing.

Take a look at this discussion: New module for centralized backup
The goal is to backup other systems ON NethServer and not NethServer itself

@sitz here i’ve only set up backuppc server, in a few days i’ll write an “upgrade” of this howto for done the backup of windows clients

2 Likes

This sounds very very interesting @AbsyntH and now I can show the scenario into my head.
Thank you.

i’m also looking at http://fogproject.org/ for bare metal restore of windows clients…stay tuned

Wow wow wow!!!
It you need someone to test just let me know.

do backuppc works with window servers?

@AbsyntH looking forward the windows client part! And windows server too

added windows client configuration ( basic steps, if you want also advanced configuration settings…read the backuppc manual )

1 Like

Oh man that’s a great howto now :wink:
I gonna try this last part asap

Michele…what about to do in the backuppc module a web page to redirect to the cygwin download and provide configuration files to backup window clients

Take a look to this howto http://www.clearcenter.com/support/documentation/user_guide/backuppc

1 Like