View previous topic :: View next topic |
Author |
Message |
bobber205 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/134572374589f0d90e4bd.jpg)
Joined: 23 Aug 2006 Posts: 561 Location: Oregon
|
Posted: Sat Oct 20, 2007 7:33 pm Post subject: Mirrored Machine |
|
|
We got a good deal on some servers and so we bought two of the exact same spec. They're building now.
We were hoping to have one of those serves be a "clone" of the other, data and all. Each would has a IDE drive and 3 SCSI hardware raid drive(s).
Is there any way to have a script or write one that copies all the files that we need/want onto the other server? _________________ Never Forget The Expat 2.0! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Keruskerfuerst Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/723045419532d6679860c2.jpg)
Joined: 01 Feb 2006 Posts: 2289 Location: near Augsburg, Germany
|
Posted: Sat Oct 20, 2007 8:43 pm Post subject: |
|
|
1. You can use dd (info/man dd).
2. You can use cp -arPR "source partition" "destination partition". In this case you use the minimal cd and mount the partitions. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bobber205 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/134572374589f0d90e4bd.jpg)
Joined: 23 Aug 2006 Posts: 561 Location: Oregon
|
Posted: Sat Oct 20, 2007 8:52 pm Post subject: |
|
|
Livecd is not an option. I want this to run automatically at night? ![Confused :?](images/smiles/icon_confused.gif) _________________ Never Forget The Expat 2.0! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Keruskerfuerst Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/723045419532d6679860c2.jpg)
Joined: 01 Feb 2006 Posts: 2289 Location: near Augsburg, Germany
|
Posted: Sat Oct 20, 2007 8:55 pm Post subject: |
|
|
You can write a small script.
It is not possible to copy partitions completly while under use. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bobber205 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/134572374589f0d90e4bd.jpg)
Joined: 23 Aug 2006 Posts: 561 Location: Oregon
|
Posted: Sat Oct 20, 2007 9:03 pm Post subject: |
|
|
I don't need to copy partitions. Just certain dirs. _________________ Never Forget The Expat 2.0! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tanderson Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/213943405446351c5ca1be0.png)
Joined: 11 Apr 2007 Posts: 193
|
Posted: Sat Oct 20, 2007 11:53 pm Post subject: |
|
|
Why can't you use rsync to copy the data? That way you'd be able to only copy the changes and would be less stressful. _________________ No Man is Just a Number!
--The Prisoner |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
drutten Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 31 Dec 2003 Posts: 103 Location: Sweden
|
Posted: Mon Oct 22, 2007 7:29 am Post subject: |
|
|
gentoofan23 wrote: | Why can't you use rsync to copy the data? That way you'd be able to only copy the changes and would be less stressful. | ++
Read up on rsync, it is a very powerful tool.
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|