This shows you the differences between two versions of the page.
backuppc [2015/05/03 19:11] stephdl [Epel rpm] |
backuppc [2019/06/05 19:48] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== BackupPC ==== | ||
- | BackupPC is a high-performance, | ||
- | |||
- | 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:// | ||
- | Then you can proceed to the nethserver-BackupPC installation. | ||
- | yum install nethserver-BackupPC --enablerepo=stephdl | ||
- | |||
- | ==== Usage ==== | ||
- | |||
- | Once installed, the admin cgi user is ' | ||
- | |||
- | see db commands | ||
- | |||
- | # config show backuppc | ||
- | backuppc=service | ||
- | CgiMultiUser=enabled | ||
- | examples=enabled | ||
- | status=enabled | ||
- | sudo=/ | ||
- | |||
- | **CgiMultiUser** -> enabled all users in ldap can use the backuppc CGI, disabled and only admin can do it | ||
- | |||
- | **sudo**-> | ||
- | 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 | ||
- | #(available stop, start, restart, status) | ||
- | or (enabled or disabled) | ||
- | |||
- | config setprop httpd-bkpc status disabled | ||
- | signal-event nethserver-BackupPC-update | ||
- | |||
- | Then go to https:// | ||
- | |||
- | You will find two urls | ||
- | https:// | ||
- | https:// | ||
- | |||
- | ==== RSA Key ==== | ||
- | |||
- | Automatically, | ||
- | |||
- | first you need to export the public key | ||
- | |||
- | su -s /bin/sh backuppc | ||
- | ssh-copy-id -i ~backuppc/ | ||
- | |||
- | and test if all is ok | ||
- | |||
- | ssh root@192.168.xxx.xxx | ||
- | if it is ok you can log without password, then do ' | ||
- | |||
- | **Of course you can use a lot of protocol (smb, | ||
- | |||
- | ==== Remove all backups of a client ==== | ||
- | |||
- | then | ||
- | |||
- | rm -rf / | ||
- | sudo -u backuppc / | ||
- | |||
- | ==== Remove One backup of a client ==== | ||
- | |||
- | |||
- | cd / | ||
- | ls | ||
- | rm -fR backup_number | ||
- | sudo -u backuppc / | ||
- | |||
- | |||
- | 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 | ||
- | |||
- | ==== remove statistic line ==== | ||
- | |||
- | 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: | ||
- | |||
- | vi / | ||
- | |||
- | you can remove the line with the backup_number. | ||
- | |||
- | Relog to your web interface and voila! No more backup_number. | ||
- | |||
- | ==== what it can be enhanced ==== | ||
- | |||
- | 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. | ||
- | |||
- | |||
- | ==== Issues ==== | ||
- | |||
- | Please raise Issues on [[https:// | ||
- | |||
- | ===== Source ===== | ||
- | sources are https:// | ||
- | ==== Epel rpm ==== | ||
- | BackupPC | ||
- | perl-File-RsyncP | ||
- | perl-Net-FTP-AutoReconnect | ||
- | perl-Net-FTP-RetrHandle | ||
- | {{tag> |