View previous topic :: View next topic |
Author |
Message |
bobber205 Guru
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 |
|
|
Keruskerfuerst Advocate
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 |
|
|
bobber205 Guru
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? _________________ Never Forget The Expat 2.0! |
|
Back to top |
|
|
Keruskerfuerst Advocate
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 |
|
|
bobber205 Guru
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 |
|
|
tanderson Retired Dev
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 |
|
|
drutten Tux's lil' helper
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 |
|
|
|