Results 1 to 4 of 4

Thread: DD for backup

  1. #1
    Join Date
    Jul 2012
    EU - Slovenia
    Ubuntu 14.04 Trusty Tahr

    DD for backup

    Just wake up from hard drive failure.
    As drive isn't totaly death (just response slow and s.m.a.r.t report a lot of udma errors) I just clone that drive to external usb harddrive with DD utility, and restore after harddrive replacement (still in warranty)
    I Just type
    sudo dd if=/dev/hda of=/dev/sdc bs=64k conf=notrunc,noerror
    and for restoring just swap sda and sdc drive.
    Work perfect and I have all stuf ready after two hour after got computer from service.
    Now I search if it's possible to do near same operation but without need to reformat backup disc?
    Ie to copy all sectors from source disc to the destination file (file not disc) and perheaps to compress it too. I found some examples to make iso file or gzip but just for input partition and not the drive.

    I had daily backup for data but now want to make monthly for entire drive. It's not fun to search what drivers and application are on old lost drive.

  2. #2
    Join Date
    Jun 2009
    SW Forida
    Ubuntu 16.04 Xenial Xerus

    Re: DD for backup

    I prefer new clean install, but backup whatever else I need in the way of info with rsync.

    discussion of alternatives/strategy backups

    Full image backups
    Free Imaging software - CloneZilla & PartImage - Tutorial
    Tar backup script:
    But do not use dd for copies from MBR to gpt partitioned drives
    If you don't mind the command line, you can use duplicity.
    If you DO mind the command line, there is a front end for duplicity; deja-dup.
    AIR - Automated Image and Restore
    AIR is a GUI front-end to dd/dc3dd designed for easily creating forensic images. by Steve Gibson and Nanni Bassetti

    Files that may need update on image copy
    fstab, reinstall grub and grub's reinstall location. Or change UUIDs
    If different computer:
    /etc/hostname and /etc/hosts,

    Originally Posted by MountainX View Post #20 also other backup apps
    Sample rsync file, use a text editor and paste into a file & name it
    Oldfred's list of stuff to backup May 2011:

    Other applications if data not separate
    apache, any sqldb, tomcat, web folders, etc

    Some files to exclude from /home:
    More detail on /etc files to backup - post #3:

    Some more examples:
    For more info on UEFI boot install & repair - Regularly Updated :
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Mar 2009

    Re: DD for backup

    +1 on rsync, or even just dragging the folders over with your mouse.

    Been in computing since the mid '80s, tried all sorts of backup mechanisms. Then I had to use one, and realized that it didn't make a restorable backup, making all that time spent making the backups worthless.

    Right now I have a removable drive (a SATA bay, you just stick a bare internal drive into the slot) and I drag interesting files over to the backup device, inside of a folder whose name is the date of the backup. No compression, just normal data. That way one corrupted byte doesn't invalidate a whole backup.
    Help stamp out MBR partition tables. Use GPT instead!

  4. #4
    Join Date
    Jul 2012
    EU - Slovenia
    Ubuntu 14.04 Trusty Tahr

    Re: DD for backup

    For daily backup I use rdiff-backup. But for backup of full disc clone it's not ussable. (mbr's partition tables etc..)

    I search a lot of backup software but just rdiff make version history and work fast. (well deja-dup work that too but is so slow..)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts