Changes

Jump to navigation Jump to search
3,077 bytes added ,  22:14, 9 March 2009
Update for 3.1 release, move to contribs categorie
Line 1: Line 1: −
== BackupPC ==
+
{{Languages}}
 +
===Maintainer===
 +
[[User:VIP-ire|Daniel B.]]<br/>
 +
[http://www.firewall-services.com Firewall Services]<br>
 +
mailto:daniel@firewall-services.com
   −
===Overview===
     −
BackupPC is a powerful, high-performance, enterprise-grade system for backing up a large number of Linux and Windows PCs and laptops to a server's disk. BackupPC is highly configurable and easy to install and maintain.
+
=== Description ===
 +
 
 +
[http://backuppc.sourceforge.net/ BackupPC] is a powerful, high-performance, enterprise-grade system for backing up a large number of Linux and Windows PCs and laptops to a server's disk. BackupPC is highly configurable and easy to install and maintain.
    
With the decreasing cost of disks and raid systems, it is practical and cost effective to backup a large number of machines onto a server's local disk or network storage. This is what BackupPC does. For some sites, this might be the complete backup solution. For other sites, additional permanent archives could be created by periodically backing up the server to tape. A variety of Open Source systems are available for doing backup to tape.
 
With the decreasing cost of disks and raid systems, it is practical and cost effective to backup a large number of machines onto a server's local disk or network storage. This is what BackupPC does. For some sites, this might be the complete backup solution. For other sites, additional permanent archives could be created by periodically backing up the server to tape. A variety of Open Source systems are available for doing backup to tape.
Line 9: Line 14:  
BackupPC is written in Perl and extracts backup data via SMB using Samba, tar over ssh/rsh/nfs, or rsync. It is robust, reliable, well documented and freely available as Open Source on SourceForge.  
 
BackupPC is written in Perl and extracts backup data via SMB using Samba, tar over ssh/rsh/nfs, or rsync. It is robust, reliable, well documented and freely available as Open Source on SourceForge.  
   −
More information & support is available at http://backuppc.sourceforge.net
+
More information & support is available at [http://backuppc.sourceforge.net http://backuppc.sourceforge.net]
      Line 38: Line 43:  
Open Source hosted by SourceForge and freely availble under GPL.
 
Open Source hosted by SourceForge and freely availble under GPL.
    +
=== Requirements ===
 +
*SME Server 7.X
 +
*a dedicated volume is recomanded (can be a simple disk or a RAID array)
 +
 +
=== Installation ===
 +
 +
*Mount a volume on /var/lib/BackupPC
 +
 +
This part is optionnal but highly recommanded. Backups should allways be on a separate volume.
 +
First, prepare your hard drive for ext3 fs (you can use any fs which support hardlinks, I allways use ext3 as it's verry reliable)
 +
In this example, I use a simple partition /dev/sdb1, it could also be a RAID array (/dev/md3) or a LVM logical volume (or a combination of RAID and lvm).
 +
By the way, if you know how to manage LVM, its usage is also recommanded as it'll be easier to manage backups data later.
 +
 +
mkfs.ext3 -L BACKUPPC -m 1 /dev/sdb1
 +
 +
Now, we need to create the directory
 +
 +
mkdir -p /var/lib/BackupPC
 +
 +
Add the mount point in fstab. Just add something like:
 +
 +
/dev/sdb1    /var/lib/BackupPC      ext3    noatime 0 0
 +
 +
And check everything is ok
    +
mount -a
 +
mount | grep BackupPC
 +
/dev/sdb1 on /var/lib/BackupPC type ext3 (rw,noatime)
 +
   −
===Some configuration examples===
+
*create some symlinks
   −
For example, you can configure the blackout period during which the server won’t backup anything in order not to slow it down, you can also configure an email alert if a machine has not been backed up during a predetermined period.  
+
This part is optionnal but recommanded. With these commands, all BackupPC related files (config and logs) will be stored on the BackupPC volume. You'll then be able to swap the BackupPC disk between two servers.
    +
mkdir -p /var/lib/BackupPC{etc,log}
 +
ln -s /var/lib/BackupPC/etc /etc/BackupPC
 +
ln -s /var/lib/BackupPC/log /var/log/BackupPC
   −
===Installation & setup on sme server===
+
*install the rpms
   −
This contrib is hosted on an external site.
+
yum --enablerepo=smecontribs install smeserver-BackupPC
See this howto for install instructions that specifically relate to sme server
+
signal-event backuppc-update
http://sme.firewall-services.com/spip.php?article3
     −
Obtain rpms from here
+
You should now be able to access the interface in the server-manager or directly on https://my.domain.tld/BackupPC
http://sme.firewall-services.com/downloads/smeserver-backuppc/rpms/
      +
You'll find three sample configuration:
    +
*smeserver-template is a sample config file to backup a SME Server.
 +
*localhost-template is a sample to backup the server itself
 +
*windows-tempalte is a sample to backup a windows host using cygwin+rsyncd
   −
===Reference links===
+
To create a host using a template, create a new host, add =<template_name>
   −
http://forums.contribs.org/index.php?topic=32089.0
+
For example
   −
http://sme.firewall-services.com/spip.php?article3
+
myserver=smeserver-template
   −
http://sme.firewall-services.com/downloads/smeserver-backuppc/rpms/
+
When you submit, the configuration from smeserver-template will be copied on my_server. You then can edit my_server's config
   −
http://sme.firewall-services.com/downloads/smeserver-backuppc/howto/
+
=== Upgrade from smeserver-backuppc.fws-3.0-1 ===
   −
http://backuppc.sourceforge.net
+
If you allready use the previous version of the contrib, some other steps are needed are the default location of the backups has changed from /opt/backuppc/files to /var/lib/BackupPC
    +
The easiest way is just to symlink the old localtion to the new one:
 +
 +
ln -s /opt/backuppc/files /var/lib/BackupPC
 +
 +
Then, you can install the new release:
 +
 +
yum --enablerepo=smecontribs install smeserver-BackupPC
 +
 +
Then, just enter the following commands:
 +
 +
mv /etc/BackupPC/config.pl.back /etc/BackupPC/config.pl
 +
mv /etc/BackupPC/hosts.back /etc/BackupPC/hosts
 +
mv /etc/BackupPC/pc/localhost.pl.back /etc/BackupPC/pc/localhost.pl
 +
db configuration delprop backuppc version
 +
usermod -d /var/lib/BackupPC/ -m backuppc
 +
mv /home/e-smith/files/users/backuppc/.ssh/ /var/lib/BackupPC/
 +
signal-event backuppc-update
 +
 +
You should be done ;)
 +
 +
=== DB properties ===
 +
 +
there's only two properties you can change:
 +
 +
*status: (enabled|disabled) Do you want the service to start automatically when the server boot ?
 +
*exmaples: (enabled|disabled) Do you want the sample configuration files to be added agin if they are removed ?
 +
 +
=== Uninstall ===
 +
yum remove smeserver-BackupPC BackupPC
 +
 +
=== Source ===
 +
The source for this contrib can be found in the smeserver [http://smeserver.cvs.sourceforge.net/smeserver/smeserver-bridge-interface/ CVS] on sourceforge.
 +
=== Bugs ===
 +
Please raise bugs under the SME-Contribs section in [http://bugs.contribs.org/enter_bug.cgi bugzilla]
 +
and select the smeserver-bridge-interface component or use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-bridge-interface|title=this link}}
    
----
 
----
[[Category:Howto]]
+
 
 +
 
 +
[[Category: Contribs]]
 
[[Category: Backup]]
 
[[Category: Backup]]

Navigation menu