Changes

From SME Server
Jump to navigationJump to search
100 bytes removed ,  04:32, 5 July 2019
Line 966: Line 966:  
  fdisk /dev/sdh
 
  fdisk /dev/sdh
 
You'll most likely find an existing vfat dos partition, which you have to delete first. In the following we assume, that you have created a single partition ''/dev/sdh1''.
 
You'll most likely find an existing vfat dos partition, which you have to delete first. In the following we assume, that you have created a single partition ''/dev/sdh1''.
* now format the drive with an ext3 filesystem, if prodbox has ntfs utils installed the usb can also be formatted ntfs, see [[USBDisks|USBDisks#NTFS]]
+
* now format the drive with an ext3 filesystem
 
  mkfs.ext3 /dev/sdh1
 
  mkfs.ext3 /dev/sdh1
 
* make the mount point
 
* make the mount point
Line 976: 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,028: 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