LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-06-2007, 11:55 AM   #1
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 522

Rep: Reputation: 31
image bakup


i want to backup using dd to create image file, and to restore it on another linux system like ghost.
is it possible to image / and /var using dd ?
thanks
 
Old 08-06-2007, 12:39 PM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Use tar better

You should also do it with a Linux not using / because you can be copying all the mounted partitions!

Say using a Live CD. Your source / is in sda3 and the target is in sde9, assuming you have formatted sde9 to the filing system of your choice. These are commands run at root console

Code:
mkdir /mnt/sda3
mkdir /mnt/sde9
mount /dev/sda3 /mnt/sda3
mount /dev/sde9 /mnt/sde9
cd /mnt/sda3
tar cf - . |  (cd /mnt/sde9; tar xf -)
The complete partition of / will be found in sde9.

If you use dd you have to make sure the size matches up. With tar you don't have to bother about the size.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP: how can I return an image - not the html img src tag, but the image data BrianK Programming 3 05-18-2007 02:28 PM
LXer: Creating a dd/dcfldd Image Using Automated Image & Restore (AIR) LXer Syndicated Linux News 0 03-07-2007 05:16 PM
convert image.png image.jpg changing colours MikeyCarter Linux - Software 1 11-17-2006 10:16 AM
remote bakup ext3 network ssh tar bz2 hiawatha Linux - General 2 03-27-2005 06:28 AM
remote bakup ext3 network ssh tar bz2 hiawatha Linux - Distributions 1 03-27-2005 06:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration