*BSD News Article 45222


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!noc.netcom.net!news.sprintlink.net!EU.net!uunet!in1.uu.net!ankh.iia.org!haven.ios.com!rashid
From: rashid@haven.ios.com (Rashid Karimov.)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Moving directories across filesystems
Date: 8 Jun 1995 19:40:41 GMT
Organization: Internet Online Services
Lines: 35
Message-ID: <3r7jnp$crs@ankh.iia.org>
References: <3r7c0h$qn1@news.bu.edu>
NNTP-Posting-Host: haven.ios.com
X-Newsreader: TIN [version 1.2 PL2]


Mikhail Teterin (mi@cs.bu.edu) wrote:
: I tried to :
: 	mv /root /usr/home/root
: And it failed (/usr was mounted on another partition). Is this a correct 
: behavior now? Files are moved just fine -- that's what I did finally:
: 	mkdir /usr/home/root
: 	mv /root/* /usr/home/root
: Thank you. Please do not beat me if this is mentioned in new man pages -- 
: I just did not get to them yet (see 'No disks found'-thread if want to 
: know why) )-:
: 	-mi

	I usually use cpio and find for doing this.

	For example , to move everything in /usr/local/HAHA
	to /var/dsk1/HAHA you should go to /usr/local and type
	there:

	find HAHA -print -depth | cpio -pdv /var/dsk1

	the permossions will be preserved, but you have to remove
	the original HAHA by hand later

Rashid

--
                             ------------------

               Beyond the horizon of the place we lived when we were young
               In the world of magnets and miracles
               Our thoughts strayed constantly and without boundary
               The ringing of the division bell had begun ...
                        -=PF, The Division Bell=-