[101945] in RedHat Linux List

home help back first fref pref prev next nref lref last post

RE: cpio question

daemon@ATHENA.MIT.EDU (Jason Parmer \(jasonp\))
Mon Nov 30 13:27:50 1998

From: "Jason Parmer \(jasonp\)" <jasonp@sequent.com>
To: "'redhat-list@redhat.com'" <redhat-list@redhat.com>
Date: Mon, 30 Nov 1998 10:25:49 -0800
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

I've always been under the impression that cp -R would do the trick...

> -----Original Message-----
> From:	Ramon Gandia [SMTP:rfg@nook.net]
> Sent:	Monday, November 30, 1998 10:18 AM
> To:	RedHat List
> Cc:	recipient.list.not.shown
> Subject:	cpio question
> 
> I am copying one partition to another using cpio, but empty
> directory trees are not being copied; also, if I use the
> -d option (create leading directories when needed), I get
> permissions of 700 ( drwx------ )
> 
> Example:
> 
> In copying this partition
> 
> /bin
> /mnt    <--------- this is empty
> /root
> 
> by empty, I mean no FILES.  There are other directories, like
> /mnt/floppy and /mnt/cdrom in there, but no files.
> 
> Now, I give the command:
> 
> prompt# find . -mount | cpio -pvumd /some
> 
> and when I do an ls -la on /some I get:
> 
> /bin            permission 700
> /root           permission 700
> 
> but no /mnt.
> 
> Is there an option, command, or trick that will accomplish
> what I want; ie, create the empty directory tree?
> 
> Also, in the above scenario, the permissions for /bin and /root
> are set to 700.  Is there a way for cpio to read the current
> ownership/permissions from these directories?
> 
> -- 
> Ramon Gandia ==== Sysadmin ==== Nook Net ==== http://www.nook.net
> 285 West First Avenue                                rfg@nook.net
> P.O. Box 970                                    tel. 907-443-7575
> Nome, Alaska 99762-0970 ======================= fax. 907-443-2487
> 
> 
> -- 
>   PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> 		http://www.redhat.com http://archive.redhat.com
>          To unsubscribe: mail redhat-list-request@redhat.com with 
>                        "unsubscribe" as the Subject.


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post