UNIHIVE

Study Hub UNIPORT CSC 283

CSC 283 · Information Systems and File Structures

File maintenance, file types and backup

Master, transaction, reference, work and archive files, keeping files correct, and backup methods including grandfather-father-son.

Our notes

2 min read

Kinds of file by use

FilePurposeExample
Mastermain permanent data, updated regularlystudent records, account balances
Transaction (movement)changes to be appliedpayments this week
Reference (table)fairly fixed data looked up by programscourse codes and titles, tax rates
Work (scratch)temporary, inside a runsorted transactions
Report / printoutput waiting to be printed or sentresult slips
Archive / historyold data kept for law or auditgraduated students
Backupcopies kept for recoverylast night's copy

File maintenance

Keeping the master file correct and up to date:

  • Amendment of standing data (address, department), separate from routine updating (balances, scores).
  • Insertion of new records and deletion of old ones (after archiving).
  • Reorganisation to remove overflow and deleted records.
  • Validation of input to keep rubbish out: format, range, type, presence, check digits and batch totals.

Check digits

A check digit is added to a code so typing errors are caught. The modulus 11 method: multiply each digit by a weight (from 2 up, counting from the right), add, and choose the check digit that makes the total divisible by 11 (X stands for 10).
Example for 4 2 7 1: weights 5, 4, 3, 2 give 20 + 8 + 21 + 2 = 51; 51 mod 11 = 7; check digit = 11 − 7 = 4. Code: 42714. Check: 51 + 4 × 1 = 55 = 5 × 11 ✓. Swapping two digits (42174) gives a different total and is caught.

Backup and recovery

  1. Grandfather-father-son (sequential files): the run that produces the new master (son) keeps the old master (father) and the one before (grandfather), each with its transactions. If the son is damaged, re-run from the father. Three generations are kept; older tapes are reused.
  2. Dumping (direct files): because direct files are updated in place, copy (dump) the whole file regularly and keep a transaction log (journal) of every change since. Recovery = reload the dump and re-apply the log.
  3. Full, incremental and differential backups (modern): full copies weekly, only changed data daily.
  4. Off-site copies and cloud storage protect against fire, theft and flood. Test that copies can actually be restored.

Security and privacy

  • Access control (passwords, roles), encryption, audit trails.
  • In Nigeria, personal data is protected by the Nigeria Data Protection Act 2023 (it replaced the NDPR of 2019; check for later rules from the Nigeria Data Protection Commission): collect only what is needed, keep it secure, delete it when no longer needed.

Exams usually ask

  • Classify files by use with examples.
  • Explain grandfather-father-son and dump-and-log recovery.
  • Calculate a modulus 11 check digit.

Common mistake

Keeping the only backup in the same room as the computer. A fire or theft takes both; one copy must be off site.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

No reading links here yet

Our team adds free books, videos and practice for each topic, and opens every link before it goes up.

All CSC 283 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.