Difference between revisions of "Backup"

From Cncz
Jump to navigation Jump to search
m
m
Line 1: Line 1:
 
[nl]
 
[nl]
Als er per ongeluk één of meerdere bestanden verloren gaan uit een ''home-directory'' (H:-schijf) of een ''/vol-directory'', dan is de kans groot dat ze terug gehaald kunnen worden. Op veel C&CZ-servers worden elke ochtend een "snapshot" gemaakt, op sommige servers zelfs meerdere keren per dag. Als men dezelfde dag C&CZ systeembeheer benadert, kan meestal eenvoudig de situatie van 's ochtends vroeg hersteld worden. In andere gevallen is men aangewezen op backup-tapes. Voorwaarde voor het aanwezig zijn op een backup-tape is wel dat het bestand minstens 1 dag oud is, want anders bestaat er nog geen enkele backup van.
+
Als er per ongeluk één of meerdere bestanden verloren gaan uit een ''home-directory'' (H:-schijf) of een ''/vol-directory'', dan is de kans groot dat ze terug gehaald kunnen worden. Op veel C&CZ-servers worden elke ochtend een "snapshot" gemaakt, op sommige servers zelfs meerdere keren per dag. Als men dezelfde dag C&CZ systeembeheer benadert, kan meestal eenvoudig de situatie van 's ochtends vroeg hersteld worden. In andere gevallen is men aangewezen op backup-tapes. Voorwaarde voor het aanwezig zijn op een backup-tape is wel dat het bestand aanwezig was tijdens een (nachtelijke) backup.
 
[/nl]
 
[/nl]
 
[en]
 
[en]
Line 6: Line 6:
 
On most C&CZ-servers every morning a "snapshot" is taken, on some servers even a few times each day. If one contacts C&CZ system administration the same day, most of the time we can easily
 
On most C&CZ-servers every morning a "snapshot" is taken, on some servers even a few times each day. If one contacts C&CZ system administration the same day, most of the time we can easily
 
restore the situation of that morning with this snapshot. In other cases we have to revert to the backup-tapes to restore the files.
 
restore the situation of that morning with this snapshot. In other cases we have to revert to the backup-tapes to restore the files.
To be present on backup-tapes a file must of course be older than one day.
+
To be present on backup-tapes a file must of course have existed during a (nightly) backup.
 
[/en]
 
[/en]
  

Revision as of 16:47, 9 January 2014

If accidentally one or more files are lost from a home-directory (H:-disk) or a /vol-directory, probably the files can be restored. On most C&CZ-servers every morning a "snapshot" is taken, on some servers even a few times each day. If one contacts C&CZ system administration the same day, most of the time we can easily restore the situation of that morning with this snapshot. In other cases we have to revert to the backup-tapes to restore the files. To be present on backup-tapes a file must of course have existed during a (nightly) backup.

Different independent backup schemes are used:

  • Morning snapshots to disk.
  • Daily backups to tape.
  • Monthly backups to tape.
  • Yearly backups to tape.

Morning snapshots to disk

Many servers take a "snapshot" of their disks at 07:00 hours Monday through Friday, and on some Linux servers at 13:00 hours as well. With this snapshot C&CZ system administration can see the exact situation of that morning, which makes an "undelete" easy. If a user wants to be able to do this himself, C&CZ can create a network share, which makes it possible for the user to look at the snapshot himself from a Windows-PC (or any Samba client).

From a Unix/Linux machine one can attach that network share through:

/usr/local/samba/bin/smbclient //$server/$sharename

or as root through:

mount -t cifs //$server/$sharename /$mountpoint -o user=$user

The regular servers for the home-directories of students and staff are bundle and pile.

We cannot easily share the snapshot filesystem through NFS and an NFS- or CIFS/SMB-server does not follow 'symbolic links', that's why we have to do it as described above.

Daily backup to tape

All server disk-partitions except temporary space like /tmp, /var/tmp, /scratch, are backed-up after each working day on a number of LTO6 tapes. Because of the time it takes to do a backup, most of the times this is a so-called incremental dump, which means that only changes w.r.t. the previous backup are written. These backups are started each evening after 18:00 hours. These backup-tapes are preserved for four weeks.

Monthly and yearly backup to tape

Every weekend a subset of all server disk partitions are completely written to a couple of LTO6-tapes. Every partition is written to tape roughly once every four weeks. These weekly backup-tapes are preserved for one year. The yearly backups are performed in December and are preserved for at least five years.

Backup server

The backups are made with the Amanda open source network backup software. The backup server, that was renewed in 2013, is a Dell PowerEdge R720xd with 44 TB disc space, that is used to make fast restores from disk possible. The backups are written to LTO-6 tapes in a Dell TL2000 tape library with 2 LTO6 drives and 24 slots. The new service reads and writes LTO-6, but it can also read the LTO-4 tapes that we used before.

Lijn.png