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:
-
Install prerequisites for NethServer:
yum install nethserver-httpd -y`
-
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 -
Proceede with installation:
yum --enablerepo=epel install backuppc
-
Define new services according to NethServer default (see developer manual)
config set backuppc
service status enabledmkdir -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 -
Signal new services :
signal-event runlevel-adjust
-
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
-
Edit with your favourite editor /etc/httpd/conf.d/BackupPC.conf :
Change Allow from 127.0.0.1 to all
Allow from all
-
Set the password for backuppc user :
htpasswd -c /etc/BackupPC/apache.users backuppc
-
Edit with your favourite editor /etc/BackupPC/config.pl and add backuppc user to the admin CGI config:
$Conf{CgiAdminUsers} = ‘backuppc’;
-
Restart httpd service and backuppc service
service httpd restart
service backuppc restart -
Login into the backuppc webpage ( using User: backuppc , Passwd : $yourpassword )
Extra Config Settings
a) set mail advisory if something goes wrong (in the main config.pl file)
-
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’;
-
Name to use as the “from” name for email
$Conf{EMailFromUserName} = ’ put you user here ';
-
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
-
Download and Install on your windows client the installer on http://sourceforge.net/projects/backuppc/files/cygwin-rsyncd/3.0.9.0/
-
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
- Then restart RsyncServer on windows services
after that open the port 873 on windows firewall
B) On Nethserver
-
log into the backuppc webpage
-
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
- Save and on the Admin Option page reload server configuration
4)Select your client on the New Drop Down Menu under Host category
- 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
- Save and on the Admin Option page reload server configuration
Now you can start your first full backup