We use amanda to backup machines to the network on Mon-Thurs evening.
If you are responsible for a machine in "Possibly To Backup", please move it to "To Backup" or "Don't Backup." If you have a machine which isn't on the list, feel free to add it.
To speed the process of getting everyone backed up, you can start setting yourself up & send me a note when you get stuck. I will help people as they request my help, with preference for desktops with important data & for which people have started the process.
- 1 Setup Instructions
- 2 Computers Being Backed Up
- 3 To Backup
- 4 Don't Backup
- 5 Possibly To Backup
- 6 Notes on Disaster Recovery
Everyone should figure out what they want backed up. Backing up data is very important. Backing up applications is probably a waste of time and tape, as they can usually be reinstalled easily & cleanly from scratch.
Workstations/Desktops/Servers with Linux, Windows, or OS X
Request a static IP address from Mark Seinw if you don't already have one. It will make locating your machine on the network MUCH easier. In the event he doesn't have any available, please use dyndnds to at least have a named address which the backup server will always be able to use to locate your machine.
If you have a windows machine, follow the Cygwin instructions. If you have an OS X machine, follow the Mac OS X instructions. In either case, you will have to allow amanda through your software firewall.
After the client has been installed, I will add the domain name and/or IP address of your computer & test your client. If all goes smoothly, you won't need to do anything else: it will quietly back up your machine Mon-Thurs evening.
Laptops or OS 9 Machines
These are more of a headache, as they are most likely on dynamic IP and/or a native backup client won't work. It is also a problem that they won't be on the network at midnight when the other machines are backed up & choosing another time when they are all on and unused is difficult. I therefore recommend backing up your data to one of the servers which are backed up. You can do this manually or I can help you create a script to do it periodically (if your laptop is typically on the network & unused whenever you have lunch for example). We allow rsync over ssh. This can keep duplicate copies of your documents on ARC, which will then be backed up to tape.
Computers Being Backed Up
|Computer's Name||IP Address||Method||Directories||Notes|
|ABEL||188.8.131.52||Cygwin||C:\Documents and Settings|
|CAIN||184.108.40.206||Cygwin||C:\Documents and Settings|
|CRUNCHER||Cygwin||C:\Documents and Settings|
|DAVIDDUNAND||220.127.116.11||Cygwin||C:\Documents and Settings
|DNS||Dynamic IP||Cygwin:rsync over ssh||C:\Documents and Settings|
|EVE||18.104.22.168||Cygwin||C:\Documents and Settings|
|INFILTRATOR||Cygwin||C:\Documents and Settings|
|JOB||22.214.171.124||Cygwin||C:\Documents and Settings|
|LEAP||126.96.36.199||Cygwin||C:\Documents and Settings
|SONDE||188.8.131.52||Cygwin||C:\Documents and Settings
Adam (needs static IP) Mercury
Possibly To Backup
afmstmhp APFim Chimera Chronos Dieter Grain Gunier Jane macplus Megabass Monte Muller Roulette Salamanca Sapporo SGI Tortilla Zugang
Notes on Disaster Recovery
As above, we use AMANDA to backup selected directories on NUCAPT machines every Monday-Thursday. AMANDA stores an index of files and folders that have been backed up. amrecover can use this index to quickly and intuitively retrieve a subset of a backup for you. This solution will automatically prompt you for multiple tapes in the case of incremental backups, so is the best to start with. If amrecover has problems, amrestore may be used to retrieve whole backup images from individual tapes. Finally, if amrestore has problems (usually only if AMANDA is unavailable or broken), the data can be manually retrieved with tar.
Copying files since a backup
I've done this. It is probably better to pause an image or to copy it to a new file & mount it, rather than copying files directly from the disk. To only copy files modified since a certain date, say 2006-05-09:
- touch -d 2006-05-09 2006-05-09.txt
- find /path_to_old_drive -newer 2006-05-09.txt |cpio -pdumv /path_to_copy_to
Confusingly, there are two very good programs to image drives that may be damaged. They also have similar names. Either program can first image the good sectors, so that you will get an image file as soon as possible. Ctrl-C will gracefully break an imaging using either program & you can resume the image merely by executiny the same command (even between system changes and restarts).
It appears that ddrescue has two principal advantages over the other program:
- It can store a logfile of bad sectors
- It is compiled, and so may be faster
To obtain ddrescue, one should be able to follow these steps:
- wget http://ftp.gnu.org/gnu/ddrescue/ddrescue-1.2.tar.bz2
- tar -xvjf ddrescue-1.2.tar.bz2 && cd ddrescue-1.2
- ./configure && make && make install
(or otherwise install it from your distribution's package repository)
To run ddrescue:
- cd /path_to_image_to
- ddrescue /dev/DEVICE_TO_IMAGE ddrescue.img ddrescue.log
dd_rescue and dd_rhelp
dd_rescue (note the underscore) is what ddrescue (no underscore) was based on. It has the advantages of:
In particular, dd_rescue is available directly on the Knoppix Linux LiveCD. You can probably still use ddrescue from Knoppix, but you'd have to follow th installation instructions above.
dd_rhelp will automate dd_rescue to quickly get the good sectors first & then spend more time trying to get bad sectors. It doesn't come with Knoppix. To install:
- wget http://www.kalysto.org/pkg/dd_rhelp-0.0.6.tar.gz
- tar -xvzf ddr_help-0.0.6.tar.gz && cd ddr_help-0.0.6
And to run it:
- ./dd_rhelp /dev/DEVICE_TO_IMAGE /path_to_image/dd_rhelp.img
Mounting an image
Partial images can often be mounted:
- mount -o loop /path_to_image /mnt/loopback
Apparently, you must use losetup sometimes:
- losetup /dev/loop0 /path_to_image
- mount -o ro /dev/loop0 /mnt/loopback