tar fs copy

Lars Hammarstrand lasse at daab.UUCP
Sat Oct 26 15:40:44 AEST 1985


In article <313 at codas.UUCP> mikel at codas.UUCP (Mikel Manitius) writes:
>> 	(cd $1; tar cf - .) | (cd $2; tar xf -)
>
>or (cd $1; find . -print | cpio -o .) | (cd $2; cpio -idu)
>for those without tar.
>
>What I really wish our System V people would do is put in the -r flag
>(for recursive) on cp(1), like Berkeley did a long time ago.
>-- 

*** NO!!!!!, THAT'S NOT GOOD ENOUGH. ****

Why doesn't anybody write a GOOD AND PORTABLE cptree(1) with some flags
like this....	(It shall manage to copy special files too)

	cptree [flags...] fromdir todir [file list or pattern...]	

 	(copy only files matching [file list or pattern...]) (*?[])

	-f	force	(overwrite any file with the same name).
	-t	time.
	-v	vebose.
	-n	not matching [file list or pattern...] (*?[])
	-i	take pattern from [inputfile] or standard-input.
	-c	create dir if it's not there.
	..	forgotten anything?

..and you say, why don`t you?

I have tried but I don't have the time to make it complete so I let someone
else to do it instead!


	Lars Hammarstrand.
	Datorisering AB, Stockholm, SWEDEN.



More information about the Comp.unix.wizards mailing list