[628] in Info-AFS_Redistribution

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

tar vs. cp in AFS

daemon@ATHENA.MIT.EDU (Dominick M. Galang)
Mon Feb 24 12:47:35 1992

From: sandman@bu-it.bu.edu (Dominick M. Galang)
To: info-afs@transarc.com
Date: Mon, 24 Feb 92 11:24:58 EST

Hi,

I didn't see this mentioned in any of the back topics on this mailing
list.  Excuse me if it's been covered before.

Can someone explain to me why tar is less than thrilled to copy
directories than cp?  In my example below, only five files are
attempted before the tar aborts.  Both from-directory and to-directory
are within afs.  I have read acl access to the from-directory and all
acl access to the to-directory.

	buit52 sandman> (cd afs-xdm; tar -cvf - . ) | (cd ~/tmp/xdm; tar -xvf -)
	a ./xdm.patch 16 blocks
	a ./CHANGES 1 blocks
	a ./Imakefile 6 blocks
	x ./xdm.patch, 8090 bytes, 16 tape blocks
	a ./Imakefile.orig 6 blocks
	a ./Login.c 46 blocks
	tar: can't set time on ./xdm.patch: Not owner
	x ./CHANGES, 157 bytes, 1 tape blocks
	tar: can't set time on ./CHANGES: Not owner
	x ./Imakefile, 3024 bytes, 6 tape blocks
	tar: can't set time on ./Imakefile: Not owner
	x ./Imakefile.orig, 2873 bytes, 6 tape blocks
	tar: can't set time on ./Imakefile.orig: Not owner
	x ./Login.c, 23491 bytes, 46 tape blocks
	tar: ./Login.c: HELP - extract write error: Permission denied
	a ./Login.h 6 blocks
	buit52 sandman> du -s afs-xdm ~/tmp/xdm
	342     afs-xdm
	12      /afs/bu.edu/usr/it/sandman/tmp/xdm



	buit52 sandman> cp -pr afs-xdm/ ~/tmp/xdm
	buit52 sandman> du -s afs-xdm ~/tmp/xdm
	342     afs-xdm
	342     /afs/bu.edu/usr/it/sandman/tmp/xdm


--dominick
-- 
Dominick M. Galang \\ sandman@bu.edu ...!bu.edu!sandman
Unix Support       // Boston University Information Technology


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