Manual Backups in Linux, DD | Linux Today

Manual Backups in Linux, DD

Written By
Web Webster
Web Webster
Oct 15, 2010

“There are several different ways to make backups of data for
any operating system. In the “glory days” of UNIX people would
usually write a cron job that would create a Tape ARchive of their
system and write that TAR to a tape drive. Well, those days are
long gone, as are those scripts. What is here? DD. DD is very
powerful and rather under appreciated tool. Do note that dd does
NOT have a progress indicator. As such, I recommend that you
apt-get install pv.

“So, a simple backup?

#dd if=/dev/sdX | pv | dd of=/dev/sdY

“The above assumes that you have access to another hard disc of
the exact same make, and that you wish to mirror your drive in use
onto the other drive (pv is just the progress indicator). Not your
cup of tea? Ok. Now, this is the command I use for backup. It’s
faster than bit by bit, though not quite as safe. It also will not
quit when it encounters a disc error. I compresses your output, and
instead of outputting to a disc, it will output to a file. The
restore on this one is pretty much the same.”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.