Results 1 to 4 of 4

Thread: DD for backup

  1. #1
    Join Date
    Jul 2012
    Location
    EU - Slovenia
    Beans
    75
    Distro
    Ubuntu 14.04 Trusty Tahr

    DD for backup

    Hello...
    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
    Code:
    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
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    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
    https://help.ubuntu.com/community/BackupYourSystem


    Full image backups
    http://clonezilla.org/
    Free Imaging software - CloneZilla & PartImage - Tutorial
    http://www.dedoimedo.com/computers/f..._software.html
    http://www.geekconnection.org/remastersys/
    http://www.psychocats.net/ubuntu/remastersys
    Tar backup script:
    https://help.ubuntu.com/12.04/server...llscripts.html
    But do not use dd for copies from MBR to gpt partitioned drives
    https://wiki.archlinux.org/index.php/Disk_Cloning
    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
    http://ubuntuforums.org/showthread.p...ghlight=backup
    Sample rsync file, use a text editor and paste into a file & name it mybackup.sh


    https://help.ubuntu.com/community/rsync
    https://help.ubuntu.com/community/CronHowto
    Oldfred's list of stuff to backup May 2011:
    http://ubuntuforums.org/showthread.php?t=1748541

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

    Some files to exclude from /home:
    http://ubuntuforums.org/showthread.php?t=1883834
    More detail on /etc files to backup - post #3:
    http://ubuntuforums.org/showthread.php?t=1500559

    Some more examples:
    http://rsync.samba.org/examples.html
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Mar 2009
    Beans
    1,982

    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.

  4. #4
    Join Date
    Jul 2012
    Location
    EU - Slovenia
    Beans
    75
    Distro
    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..)

Bookmarks

Posting Permissions

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