← Questions

Design a file backup system

0
NetflixSystem designLast asked Apr 2026

A system design interview question asked in Netflix's technical phone screen, last asked Apr 2026. It tests storage, backups and deduplication.

Design a scalable file backup system. Using basic file system operations (list a directory, read file metadata, read file contents, create directories, write files, delete or move temporary files), back up a source directory tree to a destination storage location so the destination has the same directory structure, and keep it up to date over repeated runs.

Requirements

  • Functional: discover all files and directories, copy new and changed files, reflect deleted files, preserve the directory structure, restore files from the destination.
  • Non-functional: scale to very large trees (millions of files) and very large files, survive crashes and retries without leaving corrupt or partial files at the destination, bounded load on the source machine.

Clarifying questions

  • How large is the tree, how large are the biggest files, and how often does it change?
  • Do we need point-in-time versions and retention, or only a mirror of the latest state?
  • Is the destination a local disk, a remote file server or object storage?
  • Should deletes at the source delete at the destination immediately, or be kept for a while?
  • Can files change while they are being backed up?

What a strong answer covers

  • Discovery by walking the tree (iterative, parallel by subtree) and a manifest or index of what was backed up: path, size, modification time, content hash.
  • Change detection: compare metadata against the manifest, confirm with hashes where timestamps are unreliable, and detect deletions as entries missing from the walk.
  • Large files: chunking, content-defined chunks for deduplication, resumable transfers.
  • Consistency: write to a temporary name then rename atomically, verify checksums, commit the manifest only after data is durable; idempotent retries.
  • Scaling: parallel workers with a work queue, rate limiting, and handling of files modified during the copy (snapshots or retry).
  • Restore and retention if versions are in scope, plus monitoring of run time, failures and drift.

Follow-ups

  • A backup run crashes halfway through. What does the next run do?
  • Back up thousands of machines into one shared store with deduplication across them.
  • Restore a whole machine to a point in time from last Tuesday.

Where it's asked

  • Netflix · Technical phone screen · Last asked Apr 202660 min · Coding, practical problem solving, or SQL and pipeline design, depending on the org

What it tests

storage · backups · deduplication · durability

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing