Changes

From SME Server
Jump to navigationJump to search
239 bytes added ,  05:33, 5 July 2019
Line 7: Line 7:  
Copyright (C) 2004-2012 by Michael Weinberger<br>
 
Copyright (C) 2004-2012 by Michael Weinberger<br>
 
=== Version ===
 
=== Version ===
{{ #smeversion: smeserver-affa}}
+
{{#smeversion: smeserver-affa}}
    
=== Description ===
 
=== Description ===
Line 63: Line 63:  
* Log files are rotated weekly, with 5 logs kept
 
* Log files are rotated weekly, with 5 logs kept
   −
<div style="text-align:left" class="mw-collapsible mw-collapsed" data-collapsetext="less &uarr;" data-expandtext="Obsolete Affa 2 instructions &darr;">
+
<div class="mw-collapsible mw-collapsed" style="text-align:left" data-expandtext="Obsolete Affa 2 instructions &darr;" data-collapsetext="less &uarr;">
    
=== Installation or Update of Affa 2 ===
 
=== Installation or Update of Affa 2 ===
Line 109: Line 109:  
Set up a second SME 7 box as your backupserver with hostname 'affabox‘ and IP 10.200.48.2.  
 
Set up a second SME 7 box as your backupserver with hostname 'affabox‘ and IP 10.200.48.2.  
   −
<ol></li><li>log into the 'affabox' and install the packages as described above.
+
<ol><li>log into the 'affabox' and install the packages as described above.
 
</li><li>copy the config helper script sample
 
</li><li>copy the config helper script sample
 
  cp /usr/lib/affa/jobconfig-sample.pl /root/prodbox-job.pl
 
  cp /usr/lib/affa/jobconfig-sample.pl /root/prodbox-job.pl
Line 115: Line 115:  
  my $jobname='prodbox';
 
  my $jobname='prodbox';
 
and
 
and
  'remoteHostName‘=>'10.200.48.1',
+
   
 +
'remoteHostName‘=>'10.200.48.1',
 +
 
 
optionally, if the remote server port is configured to e.g. 2222 then set
 
optionally, if the remote server port is configured to e.g. 2222 then set
  'sshPort'=>2222,
+
   
 +
'sshPort'=>2222,
 
</li><li>save and run the 'prodbox-job.pl' file. This will write the configuration (this makes the database entries and sets up the cronjobs)
 
</li><li>save and run the 'prodbox-job.pl' file. This will write the configuration (this makes the database entries and sets up the cronjobs)
 
  /root/prodbox-job.pl
 
  /root/prodbox-job.pl
Line 187: Line 190:     
  yum install smeserver-affa --enablerepo=smecontribs
 
  yum install smeserver-affa --enablerepo=smecontribs
<headertabs/>
+
<headertabs />
    
The server again need to be updated.
 
The server again need to be updated.
Line 279: Line 282:  
</ul>
 
</ul>
 
Consequently the list below should reproduce the list for the unforked Affa 3 version, plus adding the properties above. For details refer to [https://www.guedel.eu/index.php/informatique/sme-server-8/affa-v3 Arnaud's website].
 
Consequently the list below should reproduce the list for the unforked Affa 3 version, plus adding the properties above. For details refer to [https://www.guedel.eu/index.php/informatique/sme-server-8/affa-v3 Arnaud's website].
{| border="1" cellpadding="3" cellspacing=0
+
{| border="1" cellspacing="0" cellpadding="3"
 
|-
 
|-
 
| '''Property''' || '''Value''' || '''Multivalue''' || '''Default''' || '''Description'''  
 
| '''Property''' || '''Value''' || '''Multivalue''' || '''Default''' || '''Description'''  
Line 823: Line 826:     
  '''affa --cleanup JOB'''
 
  '''affa --cleanup JOB'''
After you have lowered a keep value, e.g. scheduledKeep, then archives with a higher indices will no longer be shifted and will exist for ever. This option finds these archives and deletes them after confirmation.
+
After you have lowered a keep value, e.g. scheduledKeep, then archives with a higher indices will no longer be shifted and will exist for ever. This option finds these archives and deletes them after confirmation. When running the cleanup command on a locally attached USB drive, manually mount the USB drive BEFORE running this command. When finished, manually unmount the USB drive. This requirement may apply to some of the other commands listed here.
    
  '''affa --rename-job JOB NEWNAME'''
 
  '''affa --rename-job JOB NEWNAME'''
Line 973: Line 976:  
* crosscheck your work using the df command
 
* crosscheck your work using the df command
 
  df
 
  df
  −
===== Copying a AFFA USB hard drive archive to a new disk =====
  −
Affa uses copious amounts of hard links to compress and preserve disk space for its backups. If you are in the situation where you want to copy such a disk archive to a new (bigger) disk, you need to ensure that the hard  links are copied correctly or the destination copy may became significantly bigger than the total of the source archive.
  −
  −
One way to copy across file systems (i.e. two different USB disks) and preserve the hard links is as follows:
  −
  −
* mount both USB drives but with different mount points. e.g. /media/backup1 & /media/backup2 and then:
  −
  −
mkdir /media/backup2/archive
  −
cd /media/backup1/archive
  −
tar cpf - . | ( cd /media/backup2/archive && tar xpf - )
  −
  −
where '''archive''' is the name of the AFFA job you want to move to the other disk.
      
===== Setup Affa =====
 
===== Setup Affa =====
Line 1,025: Line 1,015:  
The mount point will be automatically created, if it does not exist. <br>
 
The mount point will be automatically created, if it does not exist. <br>
 
To access the archive directory, you need to mount it manually.
 
To access the archive directory, you need to mount it manually.
 +
 +
==== Copying a AFFA USB hard drive archive to a new disk ====
 +
Affa uses copious amounts of hard links to compress and preserve disk space for its backups. If you are in the situation where you want to copy such a disk archive to a new (bigger) disk, you need to ensure that the hard  links are copied correctly or the destination copy may became significantly bigger than the total of the source archive.
 +
 +
One way to copy across file systems (i.e. two different USB disks) and preserve the hard links is as follows:
 +
 +
* mount both USB drives but with different mount points. e.g. /media/backup1 & /media/backup2 and then:
 +
 +
mkdir /media/backup2/archive
 +
cd /media/backup1/archive
 +
tar cpf - . | ( cd /media/backup2/archive && tar xpf - )
 +
 +
where '''archive''' is the name of the AFFA job you want to move to the other disk.
    
=== Restore ===
 
=== Restore ===

Navigation menu