Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[OT-i-P] Clonazione superveloce
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
teknux
Guru
Guru


Joined: 19 Feb 2003
Posts: 517
Location: Rome, IT

PostPosted: Fri Jun 10, 2005 4:55 pm    Post subject: [OT-i-P] Clonazione superveloce Reply with quote

Salve a tutti,

Non so se qualcuno l'ha già provato/scritto/pensato e onestamente fare una ricerca non sarebbe stato facile visti i termini della ricerca. Qui a lavoro ho tirato su una macchina gentoo "general purpose" con il necessario. In vista di possibili migrazioni a gentoo e non sapendo a cosa dedicare questa macchina, si è pensato alla quasi esclusiva compilazione e, caso mai, come punto di partenza per altre installazioni su altre macchine. Oggi avevo bisogno di una macchina per fare alcuni test per un firewall, così ho eseguito questi passi:

Macchina A: gentoo installata
Macchina B: vergine

1 - collegamento tra A e B con un cavo cross
2 - boot da livecd e partizionamento su B e mount delle partizioni, senza chroot
3 - non essendo a disposizione ho copiato con scp il binario di rsync da A a B
4 - configurazione di /etc/rsyncd.conf in questo modo:
Code:

uid = root
gid = root
pid file = /var/run/rsyncd.pid
use chroot = no
read only = yes

[mirror]
       path = /
       comment = Gentoo Linux Mirror System
       exclude = /proc /sys /usr/portage


5 - start del servizio rsyncd
6 - da B, senza chroot: rsync -vzopl rsync://x.x.x.x/mirror /mnt/gentoo

[tempo di una sigaretta...]

7 - chroot su B e modifica di hostname, IP e grub
8 - reboot di B e piccoli ritocchi successivi (sempre obbligatori)

tempo impiegato per l'operazione: non più di 10-15 minuti in totale ;) sarà pure brutale, ma non ho incontrato problemi e ci ho messo pochissimo ;)

spero possa interessare/illuminare qualcuno per idee migliori ;)

saluti,
tek
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Fri Jun 10, 2005 8:29 pm    Post subject: Re: [OT-i-P] Clonazione superveloce Reply with quote

teknux wrote:

spero possa interessare/illuminare qualcuno per idee migliori ;)


Io in genere uso netcat + cp o dd a seconda dei casi ;)

@xchris: lo so che dovevo scrivere un howto, ma il tempo è tiranno ;)
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Fri Jun 10, 2005 8:49 pm    Post subject: Re: [OT-i-P] Clonazione superveloce Reply with quote

gutter wrote:

Io in genere uso netcat + cp o dd a seconda dei casi ;)


io invece uso per questi fini:
netcat + dd
o
netcat + tar

netcat è un tool allucinante rimango impressionato dalla
sua versatilità :O
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Fri Jun 10, 2005 8:51 pm    Post subject: Re: [OT-i-P] Clonazione superveloce Reply with quote

X-Drum wrote:

netcat è un tool allucinante rimango impressionato dalla
sua versatilità :O


Concordo pienamente :)
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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