Copying file using scp
scp is secure copy. That is you can copy file between servers over ssh connection.
1 2 3 |
scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 [...] [[user@]host2:]file2 |
Example
1 |
scp file.extn user@remote-server-ip:/path/ |
For server with ssh on non default port, for eg: 3333
1 |
scp -P 3333 iberiaca_vshare.sql root@server54.hosthat.com:/root/ |
See rsync, Linux Commands