If you are working on a big website and want to change your server then
moving your website manually will take lot’s of time , Suppose your
website size is 4GB with code+Mysql database, and you want to move
website to other server then simply compress you website using gzip
command and copy zip to other server via SSH. I relay found this is a
fastest way to copy files form one server to other server.
To copy a file from Server-B to Server-A while logged into Server-B:
SSH command to copy files
To copy a file from Server-B to Server-A while logged into Server-B:
$ scp /path/to/file username@Server-A-IP:/path/to/destination
To copy a file from Server-B to Server-A while logged into Server-A:$ scp username@Server-B-IP:/path/to/file /path/to/destination
No comments:
Post a Comment