how to move websites between two VPS's

Discussion in 'Site & Server Administration' started by indyguidedotinfo, Nov 17, 2008.

  1. #1
    today i decided that i wanted to move one of my sites from one VPS to another. I originally started it the very hard way. I was going in VIA ftp and downloading the entire folder to my hard drive, and then upload the entire folder to the new server. The of course comes the lovely job of setting permissions and that good stuff

    But before i did all that i decided to search google a bit to see if i can copy an enire folder via SSH from one vps to the other. and yes i found the way and yes it worked and took only about 15 minutes.

    here is what i did

    on the original server i ssh'ed into the shell and browsed to the folder that the website inside of . I then entered this command

    scp -rp * username@server:/path/to/dir


    username@server will be replaced with your ' ' followed by the path where you want it to copy

    etc.. /home/admin/website/

    once you hit enter you will be asked for password on the new server , enter it and you are good to go.

    4 hours of work brought down to 15 minutes. of course do not forget to export the database on the old server to the new one.

    hope this helped someone today as it helped me.



    cheers
     
    indyguidedotinfo, Nov 17, 2008 IP
  2. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #2
    you can also do scp within cpanel. It is the best way to move between servers using cpanel.
     
    olddocks, Nov 17, 2008 IP