This is an old revision of the document!
BackupPC is a high-performance, enterprise-grade system for backing up Linux, WinXX and MacOSX PCs and laptops to a server's disk. BackupPC is highly configurable and easy to install and maintain. See http://backuppc.sourceforge.net/
I'm not the first author, it is an adaptation to nethserver of a smeserver contribs of Daniel Berteaud.
first you have to install my repository
yum install http://mirror.de-labrusse.fr/NethServer/6/noarch/nethserver-stephdl-1.0.0-1.ns6.noarch.rpm
Then you can proceed to the nethserver-BackupPC installation.
yum install nethserver-BackupPC --enablerepo=stephdl
Documentations are here : http://backuppc.sourceforge.net/faq/BackupPC.html
Once installed, the admin cgi user is 'admin' (think to set a password for ns6.6) but any users can perform a login however they can manage only the their backups(eg the admin user needs to set backups for this user). If you want to restrict the cgi interface only for the admin, then set the db 'CgiMultiUser' to disabled
see db commands
# config show backuppc backuppc=service CgiMultiUser=enabled examples=enabled status=enabled sudo=/usr/bin/rsync,/bin/gtar,/bin/tar
* CgiMultiUser → enabled all users in ldap can use the backuppc CGI, disabled and only admin can do it
* sudo→ you can add here more commands available by sudo to backuppc if you want to modify something, then
config setprop backuppc CgiMultiUser disabled signal-event nethserver-BackupPC-update
other DB available
# config show httpd-bkpc httpd-bkpc=service TCPPort=950 access=none status=enabled
the service which run the other apache session can be controlled by
service httpd-bkpc restart
#(available stop, start, restart, status) or (enabled or disabled)
config setprop httpd-bkpc status disabled signal-event nethserver-BackupPC-update
Then go to https://yourIP/BackupPC or Dashboard→Applications→BackupPC
Automatically, a rsa key is created in /var/lib/BackupPC/.ssh (4098 bits) you can use it to authenticate without password if you want to backup a linux host
first you need to export the public key
su -s /bin/sh backuppc ssh-copy-id -i ~backuppc/.ssh/id_rsa.pub firstname.lastname@example.org
and test if all is ok
if it is ok you can log without password, then do 'exit' to go out of the shell
Of course you can use a lot of protocol (smb,ftp,rync,rsynd,tar,…)
rm -rf /var/lib/BackupPC/pc/client/ sudo -u backuppc /usr/share/BackupPC/bin/BackupPC_serverMesg BackupPC_nightly run
cd /var/lib/BackupPC/pc/client/ ls rm -fR backup_number sudo -u backuppc /usr/share/BackupPC/bin/BackupPC_serverMesg BackupPC_nightly run
Removing a single backup must be done with extreme care. You can safely remove the last backup for example, but if you remove a backup on which another one is based on, you can screw up your backups
After this, you will see space reclaimed and you can check it with df, but you still need to remove statistic line, otherwise you will see it in your web interface. To do that:
you can remove the line with the backup_number.
Relog to your web interface and voila! No more backup_number.
some scripts to wake on lan computer before to backup them some scripts to backup windows computers with shadows copy
well a lot of more of course, i'm waiting your scripts and your ideas.
There is some logs if you need to debug
ll /var/log/httpd-bkpc/ total 8 -rw-r--r--. 1 root root 694 May 4 06:03 bkpc_access_log -rw-r--r--. 1 root root 749 May 4 06:03 bkpc_error_log -rw-r--r--. 1 root root 0 Apr 19 05:09 httpd-bkpc-service_log
you can have a look also
less /var/log/httpd/error_log less /var/log/messages
In order to debug you can launch the event and look if something goes wrong in log after you launch it
Please raise Issues on github
BackupPC perl-File-RsyncP perl-Net-FTP-AutoReconnect perl-Net-FTP-RetrHandle