Backup

From FGVwiki

Jump to: navigation, search
Important: The content of this page is outdated. If you have checked or updated this page and found the content to be suitable, please remove this notice.


Overview

There are two primary sources for backup files, hosts and homes. Each server in the FG network sends their files to Hosts/maple nightly via rsync and a backup script. The backup scripts are hand crafted for each host and committed to subversion in the fg-admin trunk. Maple has a RAID-5 attached and mounted at /media/backup-archive. One level up is a staging ground where there is a folder for each client that sends a backup to maple, these folders are then rsync'd to the backup RAID nightly and archived incrementally.

Create a New Backup

  • check out a working copy of fg-admin. See Guides/Subversion
  • make a copy of an existing script and edit it filing in the obvious details (hostname, backup directories)
  • commit the changes to subversion
  • copy the script to the remote host and install into /usr/sbin/gogo-backup.sh
  • edit the /etc/rsyncd.conf file on maple and add a new stanza for the host that will be backing up
  • create a folder of the remote client's hostname in /media/backup-archive/staging ie: /media//staging/hemlock
  • check the to make sure the forward and reverse DNS resolve for the host. See DNS
  • run /usr/sbin/gogo-backup.sh
  • If it succeeds then create this cron job

1 1 * * * /usr/sbin/gogo-backup.sh

Recover a Backup

  • SSH to maple
  • cd to /media/backup-archive/
  • locate your file, hosts are in hosts, home folders in net-home
Personal tools