to send files from /home/user1/temp/ of server1 to /home/user2/backup/ of server2
Method1: Using scp command
syntax: scp <file_name> <userid_of_target_server>@<hostname_of_target_server>:<location>
$cd /home/user1/temp/
$scp * oracle@server1:/home/user2/backup
Method2:using sftp command:
$ pwd
home/user1/temp/
$ sftp NJVQA198.autopal.visteon.com
username:XXXXXX
password:******
$ sftp> cd home/user2/backup/
> mput *
Method3:using ftp command
$ pwd
home/user1/temp/
$ ftp NJVQA198.autopal.visteon.com
username:XXXXXX
password:******
ftp> cd home/user2/backup/
> mput *
Note:
1. pwd command shows the current directory which we are in.
2. mput used to copy multiple files.. for single file use "put" command
Method1: Using scp command
syntax: scp <file_name> <userid_of_target_server>@<hostname_of_target_server>:<location>
$cd /home/user1/temp/
$scp * oracle@server1:/home/user2/backup
Method2:using sftp command:
$ pwd
home/user1/temp/
$ sftp NJVQA198.autopal.visteon.com
username:XXXXXX
password:******
$ sftp> cd home/user2/backup/
> mput *
Method3:using ftp command
$ pwd
home/user1/temp/
$ ftp NJVQA198.autopal.visteon.com
username:XXXXXX
password:******
ftp> cd home/user2/backup/
> mput *
Note:
1. pwd command shows the current directory which we are in.
2. mput used to copy multiple files.. for single file use "put" command
No comments:
Post a Comment