does ddrescue or dd has capability to update the content of an image file


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu does ddrescue or dd has capability to update the content of an image file
# 1  
Old 04-15-2011
does ddrescue or dd has capability to update the content of an image file

Hi

I would like to ask about the ddrescue or dd command imaging tool. is dd or ddrescue has a capability to update the created image so that i would not create a new image again if i want run the dd or ddrescue again. or if i will place it in the schedule task..

If not then is someone knows the same application that will provide the same task with additional capabilities to update an image.

Thanks for any reply.
# 2  
Old 04-15-2011
Suggest it as a enhancement. It might take longer than just creation, unless writing is exceptionally slow. It might be possible if they would lay down oldest files first, and if you restated them later, it would override. Then, it could overwrite from some point and for spot problems on old files, overlay their information at the end.
# 3  
Old 04-15-2011
Quote:
Originally Posted by jao_madn
Hi

I would like to ask about the ddrescue or dd command imaging tool. is dd or ddrescue has a capability to update the created image so that i would not create a new image again if i want run the dd or ddrescue again. or if i will place it in the schedule task..
If I get your meaning, dd doesn't magically know which blocks have changed so it can update only those blocks, no. You have to copy the whole disk again.

What more efficient tools are available for your needs depends on your system and your configuration.
# 4  
Old 04-15-2011
Quote:
Originally Posted by Corona688
If I get your meaning, dd doesn't magically know which blocks have changed so it can update only those blocks, no. You have to copy the whole disk again.

What more efficient tools are available for your needs depends on your system and your configuration.
Thanks for the reply..

I just want to confirm ..and may i ask again if you know such package that works what i mention above.. Also i read somewhere. I can use rsync to backup my root partition and case problem can i restore it, the boot loader will be install via boot live CD grub-install command if restore and also restore in another partition. Is it possible that rsync way.
# 5  
Old 04-15-2011
Quote:
Originally Posted by jao_madn
Thanks for the reply..

I just want to confirm ..and may i ask again if you know such package that works what i mention above..
That depends on your system and disk configuration. Checking the disk for changes or areas in use isn't easy if you want a disk image. What is it?
Quote:
Also i read somewhere. I can use rsync to backup my root partition and case problem can i restore it, the boot loader will be install via boot live CD grub-install command if restore and also restore in another partition. Is it possible that rsync way.
This doesn't have a lot to do with dd or dd_rescue. That takes a bare-metal backup, just clones disks sector-for-sector, rsync checks and updates individual files.

rsync checks individual files, so sounds more up your alley. A backup of files may take a lot more work to actually use than a bare-metal one though.

Code:
$ mkdir a b
$ touch a/stuff
$ rsync -r --delete a/ b
$ ls -l b/stuff
-rw-r--r-- 1 tyler users 0 Apr 15 17:07 b/stuff
$ rm a/stuff
$ rsync -r --delete a/ b
$ ls -l b/stuff
ls: cannot access b/stuff: No such file or directory
$

See man rsync for more options. If you're backing up your root partition you'll want -x so it doesn't leave the partition, and -a so it preserves users, groups, timestamps, etc, etc, etc. And -H so it preserves hardlinks.
# 6  
Old 04-16-2011
Quote:
Originally Posted by Corona688
That depends on your system and disk configuration. Checking the disk for changes or areas in use isn't easy if you want a disk image. What is it? This doesn't have a lot to do with dd or dd_rescue. That takes a bare-metal backup, just clones disks sector-for-sector, rsync checks and updates individual files.

rsync checks individual files, so sounds more up your alley. A backup of files may take a lot more work to actually use than a bare-metal one though.

Code:
$ mkdir a b
$ touch a/stuff
$ rsync -r --delete a/ b
$ ls -l b/stuff
-rw-r--r-- 1 tyler users 0 Apr 15 17:07 b/stuff
$ rm a/stuff
$ rsync -r --delete a/ b
$ ls -l b/stuff
ls: cannot access b/stuff: No such file or directory
$

See man rsync for more options. If you're backing up your root partition you'll want -x so it doesn't leave the partition, and -a so it preserves users, groups, timestamps, etc, etc, etc. And -H so it preserves hardlinks.

Thanks corona688: I just want to know if it possible about what i mention in rsync root and install boot-grub via live cd. I know rsync and using it to backup my home partition.

Thanks by the way.
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. Solaris

Jumpstart Question: Update Image?

Hi everyone, We have a T5240 and noticed we were having issues booting the system using our jumpstart server (it seems as though we don't have the correct drivers for the nxge NIC) We thought we needed to update our jumpstart server image 9/10 Solaris SPARC image. Now I'm still learning... (4 Replies)
Discussion started by: Keepcase
4 Replies
Login or Register to Ask a Question