Line 168: |
Line 168: |
| ... | | ... |
| | | |
− | ==== SOHO - Use Affa to backup to a local attached USB drive ==== | + | ==== Use Affa to backup to a NFS-mounted NAS or a local attached USB drive ==== |
− | ... | + | |
| + | You want to backup your SME 7 production server with hostname 'prodbox‘ and IP 10.200.48.1 on a mounted filesystem instead of setting up a dedicated Affa box. |
| + | |
| + | ===== Setup NAS ===== |
| + | You have a [http://www.freenas.org FreeNAS] box with IP 10.200.48.2 up and running with NFS service enabled for your network 10.200.48.0/22. The RAID array is mounted to /mnt/affashare. |
| + | # log into the 'prodbox' and install the NFS packages<br><code>yum install nfs-utils</code><br>You don't need to signal post-upgrade or reboot event. |
| + | # mount the NFS share<br><code>mkdir -p /mnt/affadevice</code><br><code>mount 10.200.48.2:/mnt/affashare /mnt/affadevice</code> |
| + | |
| + | ===== Setup Affa ===== |
| + | # log into the 'prodbox' and install the Affa packages as described above. |
| + | # copy the config helper script sample<br><code># cp /usr/lib/affa/jobconfig-sample.pl /root/prodbox-job.pl </code> |
| + | # edit /root/prodbox-job.pl and set<br><code>my $jobname='prodbox';</code><br>and<br><code>'remoteHostName‘=>'localhost',</code><br><code>'RootDir=>'/mnt/affadevice',</code><br>Review the other properties and change them to your needs. |
| + | # write the configuration<br><code># /root/prodbox-job.pl</code> |
| + | # run the job manually<br><code># affa --backup prodbox</code> |
| | | |
| === Restore === | | === Restore === |