Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mirrored Machine
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
bobber205
Guru
Guru


Joined: 23 Aug 2006
Posts: 561
Location: Oregon

PostPosted: Sat Oct 20, 2007 7:33 pm    Post subject: Mirrored Machine Reply with quote

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
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Sat Oct 20, 2007 8:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
bobber205
Guru
Guru


Joined: 23 Aug 2006
Posts: 561
Location: Oregon

PostPosted: Sat Oct 20, 2007 8:52 pm    Post subject: Reply with quote

Livecd is not an option. I want this to run automatically at night? :?
_________________
Never Forget The Expat 2.0!
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Sat Oct 20, 2007 8:55 pm    Post subject: Reply with quote

You can write a small script.
It is not possible to copy partitions completly while under use.
Back to top
View user's profile Send private message
bobber205
Guru
Guru


Joined: 23 Aug 2006
Posts: 561
Location: Oregon

PostPosted: Sat Oct 20, 2007 9:03 pm    Post subject: Reply with quote

I don't need to copy partitions. Just certain dirs.
_________________
Never Forget The Expat 2.0!
Back to top
View user's profile Send private message
tanderson
Retired Dev
Retired Dev


Joined: 11 Apr 2007
Posts: 193

PostPosted: Sat Oct 20, 2007 11:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
drutten
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2003
Posts: 103
Location: Sweden

PostPosted: Mon Oct 22, 2007 7:29 am    Post subject: Reply with quote

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.
Code:
man rsync
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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