View previous topic :: View next topic |
Author |
Message |
dmoran n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Aug 2005 Posts: 3
|
Posted: Tue Aug 16, 2005 11:22 pm Post subject: Images On Gentoo |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
tlailax Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/114041196542c3231ccf528.png)
Joined: 22 Feb 2004 Posts: 187
|
Posted: Tue Aug 16, 2005 11:35 pm Post subject: |
|
|
full image : dd (optionally with bzip2)
backup : dar |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dmoran n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Aug 2005 Posts: 3
|
Posted: Tue Aug 16, 2005 11:51 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
lnxz Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 03 Jul 2005 Posts: 472 Location: Earth
|
Posted: Wed Aug 17, 2005 1:10 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
ter_roshak Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 31 Jan 2004 Posts: 171 Location: Everett, WA
|
Posted: Wed Aug 17, 2005 3:36 am Post subject: Re: Images On Gentoo |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
dmoran n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Aug 2005 Posts: 3
|
Posted: Wed Aug 17, 2005 10:31 pm Post subject: |
|
|
Thanks alot I really need to work alot more with this distro. I thank you all of for your help. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DawgG l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/141141986446bd852be0016.jpg)
Joined: 17 Sep 2003 Posts: 874
|
Posted: Mon Aug 29, 2005 2:54 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
ter_roshak Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 31 Jan 2004 Posts: 171 Location: Everett, WA
|
Posted: Mon Aug 29, 2005 9:12 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
DawgG l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/141141986446bd852be0016.jpg)
Joined: 17 Sep 2003 Posts: 874
|
Posted: Tue Aug 30, 2005 8:02 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|