How to copy files between locations on your Managed server
Copying of files on a Managed server can be done using commands via SSH/Telnet.
- Check that you have enabled SSH/Telnet for the domain on your Managed server.
- Log in via SSH/Telnet.
‘Change directory’ to the folder above the folder containing the files. E.g.:
In this case, the files are located in:
Use the following syntax for your copying command:
scp "source file/folder" "destination_ftpuser@destination_server -P2222://usr/home/"destination_ftpuser"/
Example (copying to another domain on the same server):
scp myfolder destination_ftpuser@localhost -P2222://usr/home/destination_ftpuser/
Example (copying to another domain on a different server):
scp myfolder destination_ftpuser@serverIPAddress -P2222://usr/home/destination_ftpuser/
Further information on secure copy is available online.