Example 4: Backup from different machines, share data

This example shows how to make backups from different machines (not coordinated) and to share the data with hard links.

Imagine, you have defined the following boundary conditions:

  1. You have a server called ``server'' with a separate disk which is mounted at /disk1.
  2. You want to backup machine ``client1'' which mounts disk1 of the server at /net/server/disk1 to
    /net/server/disk1 and shall save to client1 in that directory.
  3. You want to backup machine ``client2'' which mounts disk1 of the server at /net/server/disk1 to
    /net/server/disk1 and shall save to client2 in that directory.
  4. The backup of the server runs nightly, independent of the other backups.
  5. The backups of the clients run uncoordinated, that means perhaps at the same time.
  6. You want to share all the data in the backup.
  7. You can also make small backups of parts of the source (with data sharing), but that's the same mechanism and not detailed in this example.
  8. If you have a client / server architecture like this, it is a good idea to use option lateLinks if you want to speed things up. Example 6 explains how to use it.

Write the following script for the server:

#! /bin/sh
<PATH>storeBackup.pl -s / -b /disk1 -S server -l /tmp/storeBackup.log \
    -e /tmp -e /var/tmp -e /disk1 -e /sys -e /dev -e /proc 0:client1 0:client2

Write the following script for client 1:

#! /bin/sh
<PATH>/storeBackup.pl -s / -b /net/server/disk1 -S client1 \
    -l /tmp/storeBackup.log -e /tmp -e /var/tmp -e /disk1 -e /sys -e /dev \
    -e /proc 0:server 0:client2

Write the following script for client 2:

#! /bin/sh
<PATH>/storeBackup.pl -s / -b /net/server/disk1 -S client2 \
    -l /tmp/storeBackup.log -e /tmp -e /var/tmp -e /disk1 -e /sys -e /dev \
    -e /proc  0:server 0:client1

Heinz-Josef Claes 2014-04-20