Subject: [951] Re: [950] Re: [949] Re: [948] Re: [916] commands with anonymous login

From: [email-masked]
Date: Mon, 19 Dec 1994 19:00:06 +0000 (GMT)

From: derek <[email-masked]>
	
	I still have had no luck with this. I think the problem is that
	I dont follow how the ftpconversions are supposed to act and
	what commands should be used to use tar.

	Could anyone point me to some further info on this subject?

try something like this :  (note that gtar is just GNU tar).
-----------------------------------------------------------------------------
#strip prefix;strip postfix;addon prefix;addon postfix;external command;
#types;options;description

# note that you need /bin/gzip to exist (a link to /usr/local/bin/gzip)
# in a UN-chrooted filesystem ('real' users)
# because gtar will try to exec gzip with a normal path.

 :.Z:  :  :/bin/compress -d -c %s:T_REG|T_ASCII:O_UNCOMPRESS:UNCOMPRESS
 :-z:  :  :/bin/compress -d -c %s:T_REG|T_ASCII:O_UNCOMPRESS:UNCOMPRESS
 :  :  :.Z:/bin/compress -c %s:T_REG:O_COMPRESS:COMPRESS
 :  :  :.gz:/bin/gzip -9 -c %s:T_REG:O_COMPRESS:COMPRESS
 :  :  :.tar:/usr/local/bin/gtar -c -f - %s:T_REG|T_DIR:O_TAR:TAR
 :  :  :.tar.Z:/usr/local/bin/gtar -c -Z -f - %s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+COMPRESS
 :  :  :.tar.gz:/usr/local/bin/gtar -c -z -f - %s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+COMPRESS

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

Note that 'addon prefix' is not implemented.  I've added it here so that I
can do someting like 'get xxx:yyy' where xxx is some database name and yyy
is some some of identifier (like a keyword).  You then have to have something
like a O_DONT_STAT option to avoid trying to stat() a non-existent file
xxx:yyy.  (The reason I can have ':' in my pathname is because I use somethign
else (';') for field separators in my ftpconversions file)

cheers,
	-rj