Saltar al contenido ForoHackers

Backups and recovery: start here

Copias de seguridad y recuperación
#3207 · · Citar · Denunciar

A backup is a copy of data kept so you can get it back after loss: a deleted file, a failed disk, ransomware, a fire. The copy is only worth what a restore can recover, so the real subject is recovery: how much you can lose, how long you can wait, and whether you have tried it.

Key concepts

  • 3-2-1 rule: three copies, on two kinds of media, with one stored somewhere else.
  • Full, incremental and differential: a whole copy, only what changed since the last backup, or what changed since the last full one.
  • Restore testing: a backup that has never been restored is a hope, not a backup.
  • Consistency: databases and running systems need snapshots or dumps so the copy is coherent.
  • Protection of the copies: encrypt them and keep one out of reach of the systems it protects.

Vocabulary

  • RPO: recovery point objective, the most data you can afford to lose, measured in time.
  • RTO: recovery time objective, the longest you can afford to be down.
  • Snapshot: a frozen, point-in-time view of a filesystem or volume.
  • Retention: how long each backup is kept before it is deleted.

What to study, in order

  1. Copy a folder to another disk by hand, then script it with a tool such as rsync.
  2. Switch to a tool that deduplicates and encrypts, and keep several dated versions.
  3. Write down an RPO and an RTO for your own data and check that your schedule meets them.
  4. Back up a database with its own dump tool and restore it into an empty one.
  5. Keep one copy offsite or offline, and delete a file on purpose to restore it.
  6. Rehearse a full restore of a whole machine from nothing, and time it.

Related tags

#sysadmin #file-systems #storage #reliability

No has iniciado sesión, así que esto se publica como anónimo: no se guarda con ello ninguna cuenta, nombre ni dirección, y no puede llevar enlaces ni imágenes. Inicia sesión o únete para publicar con tu nombre. Los registros de nuestro servidor web guardan la dirección y la hora de cada petición hasta 14 días; para que la tuya no quede en ellos, usa Tor. Para escribir al equipo de forma confidencial, usa el buzón. Firmar como fuente habitual (una clave guardada solo en este navegador)

Enviar tarda unos segundos aquí: tu navegador resuelve antes una prueba de trabajo contra el spam.

Responder