LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-20-2014, 02:19 AM   #1
niteen
Member
 
Registered: Mar 2013
Location: India
Distribution: Fedora
Posts: 66

Rep: Reputation: Disabled
need to create image of existing linux system


Dear all,

i gotta create backup of an existing system.

on my R&D i got this,

dd if=/dev/sda of=/dev/sdb

but what if i don't have another hard disk to take replica of an existing system.
So anyone please share me advise "how can i create image of an existing running linux server"

thanks in Advance
 
Old 09-20-2014, 02:28 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by niteen View Post
(..) what if i don't have another hard disk
OK, so you don't have another harddisk.
So what do you have access to?
DVDROM or CDROM? External drive? NFS share? SSH access on another system?
 
Old 09-20-2014, 03:05 AM   #3
niteen
Member
 
Registered: Mar 2013
Location: India
Distribution: Fedora
Posts: 66

Original Poster
Rep: Reputation: Disabled
Thanks for your quick reply,

i have the whole server with me, having complete packages installed into it.
Now the scenario is, i want to make the complete image of current running server.
So that i can have the backup for future and the system will become portable too.
 
Old 09-20-2014, 05:16 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
OK, so what backup medium do you have? DVDROM or CDROM? External drive? NFS share? SSH access on another system?
 
Old 09-20-2014, 05:22 AM   #5
niteen
Member
 
Registered: Mar 2013
Location: India
Distribution: Fedora
Posts: 66

Original Poster
Rep: Reputation: Disabled
that will be SSH access on another system sir!!
 
Old 09-20-2014, 06:23 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
OK. What you could do is pipe the output of the 'dd' command through ssh and save it to a file on the remote machine:
Code:
dd if=/dev/sda | ssh niteen@another_system "dd of=/tmp/sda.dd"
There's a couple of things to be said:
- the remote system should have enough free space,
- if the network, the local or remote machine are slow this may be a lengthy process,
- the process should not be interrupted,
- if you first zero free space and then compress it with say bzip2 or xz this may be quicker,
- 'dd' arguments like "conv=noerror,sync bs=4M" may help speed up copying as well,
- creating a hash of /dev/sda (to check proper transfer) won't match the remote files hash unless you boot another OS or Live CD/DVD.
 
1 members found this post helpful.
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a dualboot system by repartitioning an existing hard drive satimis Fedora 1 08-20-2012 04:21 PM
create new ISO image from existing One krax Slackware - Installation 6 12-15-2011 09:16 AM
Create installer disk(not Live-cd) from existing system. hellmet Debian 11 09-08-2009 11:53 AM
How to Create a custom Slack 12.2 install using existing system? linus72 Slackware 9 03-27-2009 01:25 PM
how to create a new logical drive in an existing linux system vijaya_svk Linux - Software 5 02-01-2008 10:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:41 PM.

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