Re: dd , size limitations?

This is a discussion on Re: dd , size limitations? within the Linux Administration forums, part of the Linux Forums category; patrick wrote: > any other way of backing up a bootable partition so all files and > links are preserved ...


Go Back   Usenet Forums > Linux Forums > Linux Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-08-2003
renrutv
 
Posts: n/a
Default Re: dd , size limitations?

patrick wrote:


> any other way of backing up a bootable partition so all files and
> links are preserved and ready when i blow it back on?
>


I use the following for making a copy of any directory tree (including full
partitions):

(cd source_dir; tar cvf - .)|(cd dest_dir; tar xvf -)

Since you're running off a cd, you mount your / partition to somewhere like
/mnt/hda1. Then, in your particular case, the command would be

(cd /mnt/hda1; tar cvf - .)|(cd /extern; tar xvf -)

The destination partition will of course have to be formatted with same
filesystem as the source partition before doing this.

To convince yourself this really is a full and correct image, try updating
your bootloader to boot into the copied / partion e.g root=/dev/hdc2 w/
GRUB and confirm everything is working as expected (not very scientific,
but it gave me peace of mind when I first tried this). I happen to have
everything under one / partition, though. If you have your /usr or /var in
separate partitions then this method will copy them as well, so YMMV.


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:52 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0