Changes

From SME Server
Jump to: navigation, search

Affa

2 bytes removed, 5 July
==== Copying a AFFA USB hard drive archive to a new disk ====
Copyright (C) 2004-2012 by Michael Weinberger<br>
=== Version ===
{{ #smeversion: smeserver-affa}}
=== Description ===
* Log files are rotated weekly, with 5 logs kept
<div style="text-align:left" class="mw-collapsible mw-collapsed" data-collapsetextstyle="less &uarr;text-align:left" data-expandtext="Obsolete Affa 2 instructions &darr;" data-collapsetext="less &uarr;">
=== Installation or Update of Affa 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.
</li><li>copy the config helper script sample
cp /usr/lib/affa/jobconfig-sample.pl /root/prodbox-job.pl
my $jobname='prodbox';
and
'remoteHostName‘=>'10.200.48.1', 
optionally, if the remote server port is configured to e.g. 2222 then set
'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)
/root/prodbox-job.pl
yum install smeserver-affa --enablerepo=smecontribs
<headertabs/>
The server again need to be updated.
</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].
{| border="1" cellspacing="0" cellpadding="3" cellspacing=0
|-
| '''Property''' || '''Value''' || '''Multivalue''' || '''Default''' || '''Description'''
* crosscheck your work using the df command
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 =====
The mount point will be automatically created, if it does not exist. <br>
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 ===
1,152
edits

Navigation menu