Coping data and cofiles from local system to server using ftp

By | 12/03/2012

 

Coping data and cofiles from local system to server

Coping dataand cofiles from local system to server (in /usr/sap/trans/data and /usr/sap/trans/cofilesrespectively) using ftp (file transfer protocol)

 

 

Note: Data file starts with "R" and cofile start with "K"
 
We have stored data and cofiles locally in C:>Tr directory.
 
We have to copy these files in one of the server at /usr/sap/trans path
Now to copy local file to server we need to do ftp from the location where the file is stored. Else we need to give the complete path during put
It will now prompt for <sid>adm user id and password.
Coping data and cofiles from local system to server
 
After successful login it will show that user <sid>adm is logged in. Now set type to bin (binary)
Note: ftp>binis mandatory. It converts all files to binary format.
 
Coping data and cofiles from local system to server
 

 

ftp>prompt: If we don’t want system to prompt every time for yes/no before coping files we use prompt command. So in short we can say that we disabled the interactive mode.
If we are going to copy large number of files then ftp>prompt is more feasible.
 
At first we are coping data file in /usr/sap/trans/data directory.
 
Coping data and cofiles from local system to server
 
Now we are coping cofiles in /usr/sap/trans/cofiles directory.
 
Coping data and cofiles from local system to server
 
Exit from the ftp using bye command.
 
Coping data and cofiles from local system to server

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.