Changes

From SME Server
Jump to navigationJump to search
163 bytes removed ,  05:33, 5 July 2019
Line 9: Line 9:  
{{#smeversion: smeserver-affa}}
 
{{#smeversion: smeserver-affa}}
   −
====Description====
+
=== Description ===
 
The main purpose of this affa package is to make a SME Server a dedicated backup box in a few minutes. Affa backs up as many SME servers as you like or any other servers which have sshd running and rsync installed. Once it is configured, Affa runs reliably unattended and sends warning messages in case of any errors.  
 
The main purpose of this affa package is to make a SME Server a dedicated backup box in a few minutes. Affa backs up as many SME servers as you like or any other servers which have sshd running and rsync installed. Once it is configured, Affa runs reliably unattended and sends warning messages in case of any errors.  
   Line 26: Line 26:  
'''Note:''' This document also refers to the Affa Version 2 which is not maintained anymore. Information on Affa 3 will be gradually added here once it has been more tested.
 
'''Note:''' This document also refers to the Affa Version 2 which is not maintained anymore. Information on Affa 3 will be gradually added here once it has been more tested.
   −
====Affa features at a glance====
+
==== Affa features at a glance ====
 
* Affa is secure: All transfers and connections are made by using the ssh protocol with public/private key authentication
 
* Affa is secure: All transfers and connections are made by using the ssh protocol with public/private key authentication
 
* Periodically runs unattended full backups. Only differences to the previous full backup are transferred over the network
 
* Periodically runs unattended full backups. Only differences to the previous full backup are transferred over the network
Line 237: Line 237:  
If you have a Letsencrypt certificate on the production server, then you should also include
 
If you have a Letsencrypt certificate on the production server, then you should also include
 
  Include=/etc/dehydrated
 
  Include=/etc/dehydrated
  −
If you have a Directory or file on the production server you do not want to be part of the backup, then you can Exclude it
  −
Exclude=/home/e-smith/files/ibays/xyz
      
Then save your job configuration file.
 
Then save your job configuration file.
Line 979: 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,031: 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