Accepting selected projects for Q2 2024 Check availability →
SERVER 02SYSTEM ONLINELAST SYNC: 03:17:44RSS 2.0 — ONLINE
HALF ASSEDTECHNICAL NOTES_
EST. 1999ISSUE 04.2BEST VIEWED AT 1024 × 768
TECHNICAL NOTES / PRACTICAL GUIDES / BACKUP & RECOVERY / RECORD bafe36
[BACKUP & RECOVERY]GUIDE

A workable tape backup routine for a small office

POSTED: 23.05.2002AUTHOR: ADMIN3 MIN READCOMMENTS: 0

Begin with the time the office can afford to lose, both in missing work and in waiting for a replacement system. That determines the backup frequency, the number of generations to keep and the equipment needed to read them.

Inventory the recoverable system

Include shared documents, application data, mail, configuration files and the instructions needed to rebuild the server. Keep installation media and licence information where they can be found without that server. Ask staff about files stored on local workstations. A successful backup of the shared drive says nothing about an accounts file saved on a desktop.

Make application data consistent

Use the database’s own backup or export procedure and check its completion before copying the result to tape. Stop or otherwise quiesce applications that cannot provide a consistent online backup. Copying files while they are being rewritten can produce a set that was never valid at any instant. Record the relationship between a database export and documents stored outside it.

Choose a rotation people can follow

A modest installation can use separate weekday tapes and retained weekly full backups, with one completed generation held off site. Label each tape and record when it may be reused. If incremental backups are necessary, document the full backup and every subsequent tape required for restoration. Check usable capacity with real data rather than the drive’s advertised compression ratio.

Check the job every morning

A cron entry or scheduled task needs a named person to read its result. Capture standard error, check exit status and distinguish a failed read from an empty selection of files. Set explicit paths and permissions in the script. Verify that the expected tape was loaded, the archive contains the intended directories and the backup completed before the next working day.

Restore onto another machine

Select a recent tape and an older retained generation. Restore into an empty location, check ownership and permissions, then open representative documents with the original applications. Restore the database and run a normal report. Measure the entire procedure, including finding software and loading tapes. Record the commands and any operator knowledge that the written instructions omitted.

ACCEPTANCE

Keep the restore log with the backup schedule. Reading a directory listing from a tape is useful, but it does not demonstrate that the applications can use the recovered data.

References

NetBSD 1.5 manual: dump and tape backup rotation

PostgreSQL 7.2 manual: backup and restore