Hi ,
How can I create an ftp script to:
-- connect to a remote site (nt server) -- check for a directory and subdirectories -- tar the parent directory (along with the subdirectories) -- tranfer the tar file to the target directory -- unzip the tar files. -- log out.
Thanks for the help.
Leo
Please read the FAQ article for a start...
THE UNIX FORUMS > General Topics > Answers to Frequently Asked Questions > "Automate FTP / Scripting FTP Transfers"
But you are not going to able to use tar via ftp.
could be usefull for this task:
This undocumented feature of the "put" and "get" command from the FTP-System extracts a tarfile to . on the fly while transferring.
get filename.suffix |"tar xf -" put "| tar cf - ." filename.tar
don't know if it is able to transfer directories.... i've tried the syntax on solaris2solaris and it works great.
greetings pressy