Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Undocumented Feature of FTP 3

Status
Not open for further replies.

cfsalmeida

IS-IT--Management
Feb 8, 2001
338
PT
On Sun bigadmin, submitter Jens Engraf:

"Undocumented Feature of FTP"

put "| tar cf - ." filename.tar

This undocumented feature of the "put" and "get" command from the FTP-System creates a tarfile of , on the fly while transferring. Quite useful for a fast backup to a Filesystem of a remote Host.

Regards,

Carlos Almeida,
 
I try to run the command:
put "| tar cf - ." myfile.tar

but unsuccessful. Error message :

ksh: put: not found
(on another system)
put: command not found

I don't find "put" in any system at /usr/bin

Could you tell me where and how to run this.
Tx
 
Put is a command option within ftp, it is not a command you will do from the command line on your unix machine nor will you find in /usr/bin or whatver, but rather an option from within ftp. Do a man on ftp for all the things you can do while running that "file transfer program"
Cheers
pt
 
The command is successful to be executed, but recursive subdirectories is failure. How to fix it after the error as below :

tar: /etc/.name_service_door is not a file. Not dumped


Thanks !

 
tar -cv -C - . will get you subdirectories. However, the file you reference above is not a directory but rather a door. I have no idea how tar works with doors.

pt
 
Hi pt

thanks to figure that out for me, however I figure out the same thing right after I posted the message, but don't bother to log in to clarify right after!!!. Anyway, the file I get seems to compress all data specify at the "lcd" and any/all files going through any port that is currently collecting data. Nothing special.

What should I see, expect?
 
That is what you should expect, as was the original point of the thread "This undocumented feature of the "put" and "get" command from the FTP-System creates a tarfile of , on the fly while transferring. Quite useful for a fast backup to a Filesystem of a remote Host."

Instead of having to tar up something in a directory, then starting up ftp, the useful tip provided by Carlos is a shortcut to do it with one step.

pt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top