Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Images On Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dmoran
n00b
n00b


Joined: 16 Aug 2005
Posts: 3

PostPosted: Tue Aug 16, 2005 11:22 pm    Post subject: Images On Gentoo Reply with quote

I am not new at linux but I am new at this distro of it. I got left with a Gentoo box that is in production and I need to know if there is a way to make a image of the server so I can store it off site. If there is a software anyone knows of that I could make a image of my server and I can reload the image easly I would like to know. If there is another way of maybe doing full backups of it off the server this would be a another I could go. But currently my manager would prefer a full Image. If anyone knows of anything that could help me please let me know.
Back to top
View user's profile Send private message
tlailax
Apprentice
Apprentice


Joined: 22 Feb 2004
Posts: 187

PostPosted: Tue Aug 16, 2005 11:35 pm    Post subject: Reply with quote

full image : dd (optionally with bzip2)
backup : dar
Back to top
View user's profile Send private message
dmoran
n00b
n00b


Joined: 16 Aug 2005
Posts: 3

PostPosted: Tue Aug 16, 2005 11:51 pm    Post subject: Reply with quote

full image : dd (optionally with bzip2)

what is dd and is it normaly install by default and if not I hate to bother you but could you please give the command to emerge it. Also does this send it to a network drive or does it send it to a disk?

backup : dar
what is dar and is it normaly install by default and if not I hate to bother you but could you please give the command to emerge it. Also does this send it to a network drive or does it send it to a disk?

Thank again for your help
Back to top
View user's profile Send private message
lnxz
Guru
Guru


Joined: 03 Jul 2005
Posts: 472
Location: Earth

PostPosted: Wed Aug 17, 2005 1:10 am    Post subject: Reply with quote

dd is part of the coreutils package, read the man page to learn about it's features and how to use it.
dar is a separate package and can be installed simply by running emerge app-backup/dar, read about it on their website (search with emerge -s, eix or esearch).
I suppose both these tools lets you decide where to put the output file.
Back to top
View user's profile Send private message
ter_roshak
Apprentice
Apprentice


Joined: 31 Jan 2004
Posts: 171
Location: Everett, WA

PostPosted: Wed Aug 17, 2005 3:36 am    Post subject: Re: Images On Gentoo Reply with quote

dmoran wrote:
I am not new at linux but I am new at this distro of it. I got left with a Gentoo box that is in production and I need to know if there is a way to make a image of the server so I can store it off site. If there is a software anyone knows of that I could make a image of my server and I can reload the image easly I would like to know. If there is another way of maybe doing full backups of it off the server this would be a another I could go. But currently my manager would prefer a full Image. If anyone knows of anything that could help me please let me know.


I would look into PartImage, it is packaged as part of Knoppix and is fairly easy to use. PartImage will create an image of your partitions [compression optional] and allow you to restore them later, over a network or to disk.
_________________
Josh Miller -- RHCE, VCP
Ditree Consulting
http://ditree.com/
Registered Linux User #318200
Back to top
View user's profile Send private message
dmoran
n00b
n00b


Joined: 16 Aug 2005
Posts: 3

PostPosted: Wed Aug 17, 2005 10:31 pm    Post subject: Reply with quote

Thanks alot I really need to work alot more with this distro. I thank you all of for your help.
Back to top
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 874

PostPosted: Mon Aug 29, 2005 2:54 pm    Post subject: Reply with quote

the coolest thing for me is the combination of netcat an dd. you can clone a live system and even send it thru ssh (if necessary) or compress the data if you have fast machines and a slow connection.
eg first on the machine to receive the image/data:
Code:
nc -l 23456 | dd of=[dev]-file bs=SIZE

then on the sender:
Code:
dd if=[dev or image]file bs=SIZE | nc [ip of receiver] 23456

portnums and blocksizes must be the same. and you can pipe it thru gzip or bzip.

i my experience it was faster without compression, but that was on the local lan.
it's probably possible with partimage and nc, but i haven't tested that.
Back to top
View user's profile Send private message
ter_roshak
Apprentice
Apprentice


Joined: 31 Jan 2004
Posts: 171
Location: Everett, WA

PostPosted: Mon Aug 29, 2005 9:12 pm    Post subject: Reply with quote

DawgG wrote:
the coolest thing for me is the combination of netcat an dd. you can clone a live system and even send it thru ssh (if necessary) or compress the data if you have fast machines and a slow connection.
eg first on the machine to receive the image/data:
Code:
nc -l 23456 | dd of=[dev]-file bs=SIZE

then on the sender:
Code:
dd if=[dev or image]file bs=SIZE | nc [ip of receiver] 23456

portnums and blocksizes must be the same. and you can pipe it thru gzip or bzip.

i my experience it was faster without compression, but that was on the local lan.
it's probably possible with partimage and nc, but i haven't tested that.


PartImage supports network image creation and restoration so that netcat is not necessary.
_________________
Josh Miller -- RHCE, VCP
Ditree Consulting
http://ditree.com/
Registered Linux User #318200
Back to top
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 874

PostPosted: Tue Aug 30, 2005 8:02 am    Post subject: Reply with quote

Quote:
PartImage supports network image creation and restoration so that netcat is not necessary.

yes that is true, but the netcat solution has always worked MUCH faster for me. and it's much easier and faster to set up.
and if you work in an M$-environment, ntfsclone and netcat can do a very nice job.

on the other hand, if you have a machine to do this work permanently (some kind of image-server), partimage-client and partimaged are a nice solution that even supports ssl.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum