Backups are one of the most crucial parts of any systems adminstration. Software and hardware goes wrong. Expensive, high-end software and hardware, paradoxicially, goes wrong more frequently than desktop hardware. The important point to remember is that if one of the hard-drives on a machine goes wrong, everyone will blame you. If they lose files, then you'll get blamed for this as well, even if you told them the machine wasn't backed-up.
Even if you are not adminstering a system for your lab, it's a useful skill to have. Personally, I have a backup script which I run every night. It makes sure that I have a secure copy of all my files and then switches the machine off. As this is unattended, it's no more effort than just switching the machine off directly. Backups need to be easy. If they are a hassle, you will stop doing them regularly, which defeats the point.
In the last phase, you learned how to use ssh
and ssh-agent
; well this is
great for making computational use of a remote machine, it's less good for
interacting with files. So, we need to use a different method.
Now we will try two ways of connecting to linux.cs
. First a graphical way.
![]() |
|
You should get a file explorer to this remote machine now. Try copying some
files to the directory. If you wish, you can use ssh
as above and see that
those files have appeared on the remote machine.
This is nice, BUT you can't run file system commands like ls
unless you ssh
into the remote machine. Real unix people like command lines. So, how to do
this?
![]() |
|
Write short (50 word) answers to the following questions.
![]() |
|
![]() |
Describe what is meant by the term "incremental backup". Describe a
suitable scheme for handling disaster recovery on your system
You are required to backup a bioinformatics lab's data (including many complete genomes). What should you consider with regard to backup storage |
One of the main tools for performing backups is the tar
command. It's
a very mature (or very old) piece of software. It's name (Tape
ARchive) reflects it's history — very few people backup to tape these
days, as tape is generally too slow.
The manual for tar
is very good, although rather terse. You might also
be interested in my own backup script.
![]() |
Using the How would you list the files that are in stored in your backups, so that you can easily locate the one you want? Modify the script so that it only backups files modified in the last day. What commands are required to restore a given file system from the appropriate tar file? |
So far you have managed to backup your machines to linux.cs.ncl.ac.uk
. This is
all very well, but how do you get the files onto your windows machine, should
you want to.
Well, the answer is simple; you use an ssh
client for windows. There are quite
a few of these available. I normally use Cygwin which we will cover in detail
later. However, for now, lets try a more graphical client.
![]() |
|