Difference between revisions of "Backups"

From Wiki | LUG@UCLA
Jump to: navigation, search
Line 13: Line 13:
 
== Suggested workflow ==
 
== Suggested workflow ==
  
=== Rsync ===
+
=== Rsync (or luckyBackup) ===
  
 
=== tar + Gzip (+ GnuPG) ===
 
=== tar + Gzip (+ GnuPG) ===
  
=== duplicity ===
+
=== duplicity (or Déjà Dup) ===
duplicity, or it's user-friendly font-ends ''deja-dup'' and ''duply'', combines tar, Gzip, Rsync, GnuPG, and a hybrid style backup for the ultimate backup solution.
+
 
 +
[http://duplicity.nongnu.org/ Duplicity], or the more user-friendly [https://wiki.gnome.org/DejaDup/ Déjà Dup], combines tar, Gzip, Rsync, and GnuPG to create compressed, encrypted, versioned backups either locally or over the network. It is quick and efficient because it uses the differential backup method, thanks to Rsync.
  
 
=== rdiff-backup ===
 
=== rdiff-backup ===

Revision as of 01:45, 28 June 2013

Computers fail, people make mistakes, environmental disasters happen. We recommend you back up your important data, as the initial setup is a small price to pay compared to data loss.

Overview of techniques

Full copy backup—copy all files from the backup source to the backup destination. Subsequent full backups may cause files that already exist on the destination to be copied anyway. In many cases this method uses far more time and bandwidth resources than what is necessary.

Differential backup—copy only the files that changed since the previous backup. This method uses much less time, bandwidth, and energy resources than the full copy method. It is almost always the preferred method.

Remote (off-site) backup—don't put all your eggs in one basket! A remote backup will protect against environmental disasters, burglary, or any other scenario where local backups would fail.

Encrypted backup—your files belong to you, and nobody else. Encryption incurs very little overhead in the backup process, so you have very little reason not to encrypt your backups. (for more information about encrypting email and other communications, see our page on Pretty Good Privacy)

Suggested workflow

Rsync (or luckyBackup)

tar + Gzip (+ GnuPG)

duplicity (or Déjà Dup)

Duplicity, or the more user-friendly Déjà Dup, combines tar, Gzip, Rsync, and GnuPG to create compressed, encrypted, versioned backups either locally or over the network. It is quick and efficient because it uses the differential backup method, thanks to Rsync.

rdiff-backup

Relevant software

  • Gzip - compression utility
  • tar - file archiver
  • GnuPG - encryption utility
  • Rsync - remote directory synchronizer
  • luckyBackup - GUI for Rsync (uses Rsync)
  • rdiff - like diff, but better designed for binary files rather than source code
  • rdiff-backup - remote incremental directory synchronizer (uses Rsync and rdiff)
  • duplicity - remote versioned encrypted backup (uses tar, GnuPG, Rsync, and rdiff)
  • Déjà Dup - GUI for duplicity (uses duplicity)
  • rsnapshot - remote versioned backup (uses Rsync and UNIX hard links)