Changes

From SME Server
Jump to navigationJump to search
115 bytes added ,  12:09, 2 April 2021
m
no edit summary
Line 1: Line 1:  
{{Languages}}
 
{{Languages}}
 
===Maintainer===
 
===Maintainer===
[mailto:daniel@firewall-services.com[[User:VIP-ire|Daniel B.]]] from [http://www.firewall-services.com Firewall Services]
+
[mailto:daniel@firewall-services.com][[User:VIP-ire|Daniel B.]] from [http://www.firewall-services.com Firewall Services]
   −
=== Version ===
+
===Version===
    
{{#smeversion: smeserver-BackupPC }}
 
{{#smeversion: smeserver-BackupPC }}
Line 10: Line 10:  
{{#smeversion: BackupPC4 }}
 
{{#smeversion: BackupPC4 }}
   −
=== Description ===
+
===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.
 
[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.
Line 18: Line 18:  
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 http://backuppc.sourceforge.net]
+
More information & support is available at http://backuppc.sourceforge.net
      Line 47: Line 47:  
Open Source hosted by SourceForge and freely available under GPL.
 
Open Source hosted by SourceForge and freely available under GPL.
   −
=== Requirements ===
+
===Requirements===
 +
 
 
*SME Server 7.x, 8.x, 9.x or 10.x.
 
*SME Server 7.x, 8.x, 9.x or 10.x.
 
*A dedicated volume is recommended (can be a simple disk or a RAID array)
 
*A dedicated volume is recommended (can be a simple disk or a RAID array)
   −
=== Installation ===
+
===Installation===
==== Pre-Installation ====
+
====Pre-Installation====
 +
 
 
*Mount a volume on /var/lib/BackupPC
 
*Mount a volume on /var/lib/BackupPC
   Line 60: Line 62:  
By the way, if you know how to manage LVM, its usage is also recommended as it will be easier to manage backups data later.
 
By the way, if you know how to manage LVM, its usage is also recommended as it will be easier to manage backups data later.
   −
mkfs.ext3 -L BACKUPPC -m 1 /dev/sdb1
+
 
 +
 
 +
<!-- Note: releases of Koozali SME Server from version 10 on use XFS as the default filesystem. You can use XFS, ext4 or ext3 on a secondary filesystem as preferred. --> mkfs.ext3 -L BACKUPPC -m 1 /dev/sdb1
    
Now, we need to create the directory
 
Now, we need to create the directory
Line 75: Line 79:  
  mount | grep BackupPC
 
  mount | grep BackupPC
 
  /dev/sdb1 on /var/lib/BackupPC type ext3 (rw,noatime)
 
  /dev/sdb1 on /var/lib/BackupPC type ext3 (rw,noatime)
      
*create some symlinks
 
*create some symlinks
Line 85: Line 88:  
  ln -s /var/lib/BackupPC/log /var/log/BackupPC
 
  ln -s /var/lib/BackupPC/log /var/log/BackupPC
   −
==== RPM Installation ====
+
====RPM Installation====
 
<tabs container><tab name="Backuppc4 For SME 10">
 
<tabs container><tab name="Backuppc4 For SME 10">
 
  yum install smeserver-extrarepositories-fws
 
  yum install smeserver-extrarepositories-fws
 
  yum --enablerepo=smecontribs,fws install smeserver-BackupPC
 
  yum --enablerepo=smecontribs,fws install smeserver-BackupPC
   −
# you will have following RPM pulled from fws : BackupPC-XS BackupPC4 rsync-bpc
+
#you will have following RPM pulled from fws : BackupPC-XS BackupPC4 rsync-bpc
# all other from CentOS or smecontribs.
+
#all other from CentOS or smecontribs.
 +
 
 
*no need to updates configuration files following the installation
 
*no need to updates configuration files following the installation
 +
 
Go to your server-manager.
 
Go to your server-manager.
   Line 106: Line 111:     
*updates configuration files following the installation
 
*updates configuration files following the installation
 +
 
  signal-event backuppc-update
 
  signal-event backuppc-update
   Line 114: Line 120:     
*updates configuration files following the installation
 
*updates configuration files following the installation
 +
 
  signal-event backuppc-update
 
  signal-event backuppc-update
   Line 119: Line 126:  
</tab><tab name="For SME 8">
 
</tab><tab name="For SME 8">
 
  yum --enablerepo=smecontribs install smeserver-BackupPC
 
  yum --enablerepo=smecontribs install smeserver-BackupPC
 +
 
*remove -N option for Samba >=3.5 from /etc/BackupPC/config.pl ( 3 lines) for SME8
 
*remove -N option for Samba >=3.5 from /etc/BackupPC/config.pl ( 3 lines) for SME8
 +
 
  cp /etc/BackupPC/config.pl /etc/BackupPC/config.pl.orig
 
  cp /etc/BackupPC/config.pl /etc/BackupPC/config.pl.orig
 
  cat /etc/BackupPC/config.pl.orig|sed 's/ -E -N -d 1/ -E -d 1 /g'>/etc/BackupPC/config.pl
 
  cat /etc/BackupPC/config.pl.orig|sed 's/ -E -N -d 1/ -E -d 1 /g'>/etc/BackupPC/config.pl
Line 125: Line 134:  
http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=Troubleshooting
 
http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=Troubleshooting
 
and also bugs : [[bugzilla:7016]] and [[bugzilla:7281]]
 
and also bugs : [[bugzilla:7016]] and [[bugzilla:7281]]
 +
 
*updates configuration files following the installation
 
*updates configuration files following the installation
 +
 
  signal-event backuppc-update
 
  signal-event backuppc-update
   Line 152: Line 163:  
When you submit, the configuration from smeserver-template will be copied on my_server. You then can edit my_server's config
 
When you submit, the configuration from smeserver-template will be copied on my_server. You then can edit my_server's config
   −
=== Upgrade from smeserver-backuppc.fws-3.0-1 ===
+
===Upgrade from smeserver-backuppc.fws-3.0-1===
    
If you already use the previous version of the contrib, some other steps are needed as the default location of the backups has changed from /opt/backuppc/files to /var/lib/BackupPC
 
If you already use the previous version of the contrib, some other steps are needed as the default location of the backups has changed from /opt/backuppc/files to /var/lib/BackupPC
Line 183: Line 194:  
You will mostly have some debugging to do regarding the bug {{Bugzilla:10514}}
 
You will mostly have some debugging to do regarding the bug {{Bugzilla:10514}}
 
Also according to BackupPC documentaton this should be doable, but might need some manual tweaking in order to use both v3 and v4 pools during the transition delay:  
 
Also according to BackupPC documentaton this should be doable, but might need some manual tweaking in order to use both v3 and v4 pools during the transition delay:  
# http://backuppc.sourceforge.net/BackupPC-4.0.0.html#BackupPC-4.0
  −
# https://github.com/backuppc/backuppc/blob/master/bin/BackupPC_migrateV3toV4
  −
# https://www.srbu.se/index.php?option=com_content&view=article&id=210:migrating-backuppc-v3-pools-to-v4&catid=12&Itemid=121
  −
# https://github.com/backuppc/backuppc/issues/249
     −
=== DB properties ===
+
#http://backuppc.sourceforge.net/BackupPC-4.0.0.html#BackupPC-4.0
 +
#https://github.com/backuppc/backuppc/blob/master/bin/BackupPC_migrateV3toV4
 +
#https://www.srbu.se/index.php?option=com_content&view=article&id=210:migrating-backuppc-v3-pools-to-v4&catid=12&Itemid=121
 +
#https://github.com/backuppc/backuppc/issues/249
 +
 
 +
===DB properties===
    
there's only two properties you can change:
 
there's only two properties you can change:
Line 249: Line 261:  
     Scripts should not be placed in /etc/BackupPC as permissions will be overwritten
 
     Scripts should not be placed in /etc/BackupPC as permissions will be overwritten
   −
=== Operation ===
+
===Operation===
 
====Backup a smeserver====
 
====Backup a smeserver====
 
To configure a SME Server client to be backed up using a configuration based on the provided smeserver-template, configure SSH from the backup server as follows:
 
To configure a SME Server client to be backed up using a configuration based on the provided smeserver-template, configure SSH from the backup server as follows:
Line 271: Line 283:  
This will cover the opportunity to use this full or almost full backup to use the restoration option while installing a new manager, which will help you to migrate between versions.
 
This will cover the opportunity to use this full or almost full backup to use the restoration option while installing a new manager, which will help you to migrate between versions.
   −
* change '''SERVERNAME''' with the actual name of your backup
+
*change '''SERVERNAME''' with the actual name of your backup
* change '''-n -1''' with the number of the most uptodate fullbackup you want to use. (-1 means relative to the end: last available in this case)
+
*change '''-n -1''' with the number of the most uptodate fullbackup you want to use. (-1 means relative to the end: last available in this case)
    
  su - backuppc -s /bin/sh
 
  su - backuppc -s /bin/sh
Line 293: Line 305:  
  umount /mnt/MyDisk/  
 
  umount /mnt/MyDisk/  
   −
# install SME server
+
#install SME server
# reboot
+
#reboot
# plug your drive when you see the screen asking for restoration
+
#plug your drive when you see the screen asking for restoration
    
and you are done.
 
and you are done.
Line 362: Line 374:     
====Remove backups====
 
====Remove backups====
 +
 
*Remove all backups of a client
 
*Remove all backups of a client
 +
 
  rm -rf /var/lib/BackupPC/pc/<client>/
 
  rm -rf /var/lib/BackupPC/pc/<client>/
 
  sudo -u backuppc /usr/share/BackupPC/bin/BackupPC_serverMesg BackupPC_nightly run
 
  sudo -u backuppc /usr/share/BackupPC/bin/BackupPC_serverMesg BackupPC_nightly run
    
*Remove One backup of a client
 
*Remove One backup of a client
 +
 
  cd /var/lib/BackupPC/pc/<client>/
 
  cd /var/lib/BackupPC/pc/<client>/
 
  ls
 
  ls
Line 385: Line 400:  
===Known Issues===
 
===Known Issues===
   −
* When restarting the BackupPC service you may receive the error as indicated below :<br />
+
*When restarting the BackupPC service you may receive the error as indicated below :<br />
'''
+
 
 +
<br />
 
  [root@backuppc ~]# service backuppc restart<br />
 
  [root@backuppc ~]# service backuppc restart<br />
    
  Shutting down BackupPC:                                    [  OK  ]  
 
  Shutting down BackupPC:                                    [  OK  ]  
 
  Starting BackupPC:                                        [  OK  ]  
 
  Starting BackupPC:                                        [  OK  ]  
  '''BackupPC: WARNING:  Your BackupPC $Conf{TopDir} is not listed in the locate  
+
  '''BackupPC: WARNING:  Your BackupPC $Conf{TopDir} is not listed in the locate '''
 
  BackupPC: database configuration's PRUNEPATHS.  This may cause all of your  
 
  BackupPC: database configuration's PRUNEPATHS.  This may cause all of your  
  BackupPC: backed up files to be indexed!'''
+
  BackupPC: backed up files to be indexed!
 
'''To remove the warning''' <br />
 
'''To remove the warning''' <br />
   Line 403: Line 419:  
  expand-template /etc/updatedb.conf
 
  expand-template /etc/updatedb.conf
   −
* “aborted by signal=PIPE”
+
*“aborted by signal=PIPE”
 +
 
 
Sometime the backup fails with this error, this error is related to the remote ssh service. You must set in the /etc/ssh/ssh_config of your remote host
 
Sometime the backup fails with this error, this error is related to the remote ssh service. You must set in the /etc/ssh/ssh_config of your remote host
   Line 413: Line 430:  
  $Conf{RsyncClientCmd} = '$sshPath -o ServerAliveInterval=120 -q -x -l root $host $rsyncPath $argList+';
 
  $Conf{RsyncClientCmd} = '$sshPath -o ServerAliveInterval=120 -q -x -l root $host $rsyncPath $argList+';
   −
* trying backing up a SME Server you might encounter error or timeout on ssh, this is because of the AutoBlock function on sshd
+
*trying backing up a SME Server you might encounter error or timeout on ssh, this is because of the AutoBlock function on sshd
    
FOR a SME10
 
FOR a SME10
Line 424: Line 441:  
{{Tip box|if you disabled Autoblock, install denyhosts or fail2ban not to fall security.}}
 
{{Tip box|if you disabled Autoblock, install denyhosts or fail2ban not to fall security.}}
   −
* Since SME10 my old configuration for backupin my local server fails. You need to edit your configuration. You have two choices : use ssh for rsync which is kind of not the best approach for localhost , or you can edit your config to change this  
+
*Since SME10 my old configuration for backupin my local server fails. You need to edit your configuration. You have two choices : use ssh for rsync which is kind of not the best approach for localhost , or you can edit your config to change this
 +
 
 
  Conf{RsyncSshArgs} = ['-e', '$sshPath -l root']
 
  Conf{RsyncSshArgs} = ['-e', '$sshPath -l root']
 
to this  
 
to this  
Line 431: Line 449:  
You can also do that using the GUI in edit configuration / XFER search for RsyncSshArgs. New installation have the default template already modified.
 
You can also do that using the GUI in edit configuration / XFER search for RsyncSshArgs. New installation have the default template already modified.
   −
=== Uninstall ===
+
===Uninstall===
 
  yum remove smeserver-BackupPC BackupPC
 
  yum remove smeserver-BackupPC BackupPC
   −
=== Bugs ===
+
===Bugs===
 
Please raise bugs under the SME-Contribs section in [http://bugs.contribs.org/enter_bug.cgi bugzilla]
 
Please raise bugs under the SME-Contribs section in [http://bugs.contribs.org/enter_bug.cgi bugzilla]
 
and select the smeserver-BackupPC component or use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-BackupPC|title=this link}}
 
and select the smeserver-BackupPC component or use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-BackupPC|title=this link}}
Line 443: Line 461:  
Only released version in smecontrib are listed here.
 
Only released version in smecontrib are listed here.
   −
{{ #smechangelog: smeserver-BackupPC}}
+
{{#smechangelog: smeserver-BackupPC}}
    
[[Category: Contrib]]
 
[[Category: Contrib]]
 
[[Category: Backup]]
 
[[Category: Backup]]

Navigation menu