|
|
Backing up X-windows, compilers, fink, your
work, and other "normal" unix files using standard
tools.
1. Backing it
up:
The least painful ways
to back up X-windows are either (a) to do nothing, as you can
download it from the server and reinstall it, or (b) to keep the
installer package on a CD, along with a copy of the installer
package for the Apple Developer Tools, as the download process for
each of these can be rather slow.
The easiest way to back
up fink is to go to the /sw directory and do this:
% cd /sw
% tar cvfz - . >
/mybackupdevice/directorytree/fink_sw_backup.tgz
% cd
% cp .cvspass /mybackupdevice/directorytree/my.cvspass
(You need to do this last step only if you have installed cvs
updates -- and I recommend this.)
This will fit on a CD or
DVD. I put it on a CD-RW, which enables me to do frequent
backup updates without wasting plastic. If your fink
installation is too bloated, you can leave out the /sw/src
directory (or make more than one tarball). I also have a cron
job that does a remote backup of this (and several other crucial
directories including /usr/local ) once a month to a
RAID.
2. Restoring
fink or installing fink quickly on a new system:
Then if you need to
restore fink after a disaster, or if you need to install everything
on a new computer quickly, all you have to do is create a directory
at root level called /sw and blow out your tarball backup,
i.e.,
# tar xvfz fink_sw_backup.tgz
and Bob's your
uncle.
Now you must also do
three or four more things to complete the restoration or
installation:
a.
%
cp
/mybackupdevice/directorytree/my.cvspass
/Users/yourname/.cvspass
b.
reinstall X-windows either by downloading the installer from
the server or from your backup CD of the installer.
c.
reinstall the Developer Tools unless you already have it
(again, having this backed up on a CD will save you a painful
dowload).
Note that as long as you
save the .deb files from fink, all you have to do to restore a
particular program is to put it into the appropriate directory and
type
% fink
install myprogram
and the pre-compiled myprogram will be unpacked and installed
again in a matter of seconds.
3. Backing up
your other stuff:
a. A
Simple Unix-style backup (this is all you need for "normal" unix
files).
If you put all of your
crystallography software in /usr/local (a good idea), backups
and restores are very easy, i.e.,
|