[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ideas about moving Debian to another hard drive



This is why I thought my brain storm of using MC to tag/untag directories
was the ticket with the retain UID/GID set.  Ofcourse since it didn't keep
the permissions of the directories this was a bite in the ass.

However!  If you use mc to tag/untag the proper directories and type "cp
-a [^C t] /mnt" (^ is CTRL not the character and /mnt is wherever you want 
it.) in the command line, it works like a charm on symlinks and
permissions.  Moves the entire directory structure that you tag.

On Wed, 7 May 1997, Robert D. Hilliard wrote:

> On Date: Wed, 07 May 1997 "David B. Teague" <teague@WCUVAX1.WCU.EDU> wrote:
> > On Tue, 6 May 1997, Robert D. Hilliard wrote:
> > 
> > > cp -ax certainly is much simpler than using find and cpio.  Is
> > > there any option to cp (I can't find one) that would keep it from
> > > copying /proc, like the -prune option in find?
> > 
> > Isn't /proc a mounted file system, even if it is a pseudo file system? 
> > Doesn't that make x option (which prevents other mounted file systems
> > from being copied) the solution to this problem? 
> 
>      Apparently not.  I made a directory /newproc and tried cp with
> the following results:
> 
> root:vc-6:~>cp -a -x /proc /newproc
> root:vc-6:~>du -s /proc
> 0       /proc
> root:vc-6:~>du -s /newproc
> 23936   /newproc
> 
>      I stopped the copy with ^C when I got tired of watching it sit
> there, so /newproc might have grown larger if I had more patience.  
>  
> > Actualy, I'm a lot more concerned with the problem of recursive copy in
> > something like. 
> >  	cp -ax / /mnt  :(
> > 
> > Seems that booting a rescue disk to do the actual copying is a solution.
> 
>      The x option _should_ prevent copying /mnt.  Before I learned
> about the -mount option in find, I once tried a find/cpio file
> transfer and was part way through the second copy of /mnt when the
> disk became full!
> 
>      I have a small rescue partition that I have booted to copy one
> file system to another, and a rescue disk would do the same job.
> 
> Bob
> 
> 
> --
> TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
> debian-user-request@lists.debian.org . 
> Trouble?  e-mail to templin@bucknell.edu .
> 

TIA,

--Rick

rickya@siservices.net


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: