/-partition verschieben

Jan-Benedict Glaw jbglaw at lug-owl.de
Sat Dec 29 16:43:08 CET 2001


On Sat, 2001-12-29 16:30:43 +0100, Marco Meier <tolleadresse at gmx.de>
wrote in message <LCECKGNFBLKPGFKLCPNBIEPMCBAA.tolleadresse at gmx.de>:
> >> 1) wenn ich 'cp -Rv / /tmp_root'  mache, dann wird ja *alles* kopiert,
> >> da ja / die Wurzel des Verzeichnisbaumes ist. Also werden auch die
> >> anderen Mountpoints mitkopiert. Kann das so richtig sein?
> 
> cp -Rx / /tmp_root	x = nur dieses Filesystem

Ich bin bei 'cp' immer ziemlich vorsichtig, und würde das eher mit
tar machen:

	tar cpf - --one-file-system | ( cd /tmp_root && tar xpvf - ; )

MfG, JBG

-- 
Jan-Benedict Glaw   .   jbglaw at lug-owl.de   .   +49-172-7608481
	 -- New APT-Proxy written in shell script --
	   http://lug-owl.de/~jbglaw/software/ap2/



More information about the Linux mailing list