JWK - Jackall's IT Wiki

Sécurité, Système, Réseau

Outils pour utilisateurs

Outils du site


backuppc

Backuppc

Introduction

BackupPC is a GNU/Linux pull based backup software.

It comes with an WebUI allowing you to easily schedule backups

Functions

Backups

BackupPc works with:

It support full and incremental backup and the following protocols:

  • rsync
  • rsyncd
  • samba / CIFS
  • tar

Web User Interface

Backuppc perl Web UI allow you to schedule, configure and also to handle restorations.

Alerting

Set up and configuration on GNU/linux

Here on Ubuntu Ubuntu

aptitude install backuppc

A password will be generated during configuration, allowing you to access Web UI.

  • Apache Web server Configuration
cp /etc/backuppc/apache.conf  /etc/apache2/sites-available/backuppc.conf
cd /etc/apache2/sites-enabled/
ln -s ../sites-available/backuppc.conf .
 
/etc/init.d/apache2 reload

Backup Configuration

Prerequisite

  • You have to use DNS or /etc/hosts file to access remote servers.
root@MC:~# cat /etc/hosts
127.0.0.1	localhost
127.0.1.1	MC
192.168.0.120	ace-linux
  • Create a system account for backup purpose only (server side)

Generate a RSA key Pair, that will be used to connect without password.

root@MC:/tmp# su - backuppc
$ bash
backuppc@MC:~$ ssh-keygen  -t rsa -b 2048

On each remote server (backup clients)

  • Create a specific user.
adduser backup 
  • Configure sudo to give required rights
visudo


backuppc  ALL=NOPASSWD:/usr/bin/rsync
 
#Defaults    requiretty

<note important>Note the comment on requiretty</note>

On backupPc server

backuppc@MC:~$ssh-copy-id  backup@ace-linux
  • On the WebUI modify RsyncClientCmd variable
$sshPath -q -x -l backuppc $host /usr/bin/sudo $rsyncPath $argList+
  • Do the same for restoration commands

search?q=Security%20Backup%20backuppc%20Linux%20%20Debian%20%20Apache2%20EN&amp;btnI=lucky

backuppc.txt · Dernière modification: 2018/02/18 16:01 (modification externe)