Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 11 of 11

This is a discussion on Does anyone know how I can rsync/scp data between accounts? in the VPS & Dedicated forum
Hello I have a VPS account using Linux with JPC as well as a SDX (semi dedicated) account & I wish to move one of ...

  1. #1
    JPC Member
    Join Date
    Nov 2007
    Posts
    18

    Does anyone know how I can rsync/scp data between accounts?

    Hello
    I have a VPS account using Linux with JPC as well as a SDX (semi dedicated) account & I wish to move one of my domains across to the SDX from the VPS

    Unfortunately the VPS is Plesk & the SDX is Cpanel so I can't just backup & restore

    Support mentioned the following

    If you need to transfer selective data then that needs to be done manually and you can simply rsync/scp data from one account to other
    & I have no idea what they mean

    Does anyone know how I can transfer my site (All files & folders) using the rsync/scp method? & can I do the same for the database?

    I'd rather attempt an online transfer than have to FTP the whole site to my pc & then back to the new server

    any help / suggestions would be appreciated

    Thanks in advance

    John

  2. #2
    JPC Dream Team JPC-Bilal's Avatar
    Join Date
    Nov 2006
    Posts
    1,175
    Hi John,

    Since both control panels are different, direct migration is not possible. So in order to do it here are the steps:

    > First of all setup the domain you want to move to SDX account as Add-on. You can do it via cPanel of your account or contact technical support if you face any problem.

    > Then you will have a folder under public_html of your SDX account. Now you can simply move the data of the domain from Plesk server to SDX account in that folder using FTP.

    > After that you can generate and download dumps of the databases required by that particular domain and upload them via FTP to SDX account. Support can help you restoring them. You will have to recreate database users and make the required changes in scripts and update new db names, users etc.

    > Once done you can change the Nameservers at registrar of that domain to point it to JaguarPC SDX servers. Here are the Nameservers:

    ns.nocdirect.com
    ns2.nocdirect.com

    That's All

    Sincerely,
    --
    Bilal. B.
    Technical Support Dept.
    JaguarPC LLC.

  3. #3
    JPC Member
    Join Date
    Nov 2007
    Posts
    18
    Wow, Thanks for the fast info.
    By FTP do you mean that I still need to ftp to my own PC & then upload again via FTP or can I do this transfer over the net?

  4. #4
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    You can also rsync, scp or ftp directly from one account to the other. However, that's all from the command line. If you have no idea what it all means, you are probably better of moving the data over in the way you are comfortable with: ftp via your own pc. If you want to try anyway, here is the rsync manual page: http://rsync.samba.org/ftp/rsync/rsync.html
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  5. #5
    JPC Member
    Join Date
    Nov 2007
    Posts
    18
    Hey Gwaihir, thanks for the reply

    I am comfortable using the command line as long as I know what commands etc to use, I've just never used rsync, scp etc & would love any good sites where I can get my self up to speed with using it

  6. #6
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,312
    Approach 1 (if you've got a lot of diskspace capacity you'll be doubling your usage temprarily on the old account):
    Dump your databases using mysqldump
    Code:
    mysqldump -u dbuser -pdbpasswd -a --all-databases >migration.sql
    create a giant but compressed tarball of your account using tar
    Code:
    tar -czf hugefile.tar.gz .
    login to your new account shell
    Transfer the tarball using FTP from server to server
    Code:
    ftp oldaccount.com
    username
    password
    get hugefile.tar
    quit
    Untar the tar ball
    Code:
    tar -xzf hugefile.tar.gz
    Recreate database users in new account's CPanel
    Reload your databases
    Code:
    sql -udbuser -ppasswd < migration.sql
    Recreate your email accounts manually.

    ===============================

    Approach 2:
    Dump your databases using mysqldump
    Code:
    mysqldump -u dbuser -pdbpasswd -a --all-databases >migration.sql
    login to your new account shell
    Transfer the entire account, one file at a time, but autmaticaly using FTP from server to server:
    Code:
    ftp -i oldaccount.com
    username
    password
    mget *
    quit
    (You may nee dto do the above directory by directory, I'm not sure. The tarball is really the way to go...)
    Recreate database users in new account's CPanel
    Reload your databases
    Code:
    sql -udbuser -ppasswd < migration.sql
    Recreate your email accounts manually.


    Good luck
    Last edited by Ron; 10-04-2008 at 08:41 PM.
    Good luck

  7. #7
    Techinical Support Rep.
    Join Date
    Oct 2008
    Location
    Canada
    Posts
    526
    Hi,

    As for moving files with rsync I would suggest you read the manual as above but if you want a quick example here is one:

    you need shell access on both servers. Login in to the server you are transferring from.

    rsync -av /home/oldserveruser/public_html newserver.example.net:/home/newserveruser

  8. #8
    JPC Member
    Join Date
    Nov 2007
    Posts
    18
    Oh these are excellent, thank you

    Will give these a go over my next few days off, very much appreciated, thanks Ron & Nick0 for the help

  9. #9
    JPC Member
    Join Date
    Nov 2007
    Posts
    18
    hmmm I keep getting command not found, does this mean I have to install rsync first???

  10. #10
    草分け
    Join Date
    Aug 2006
    Location
    Bellthorpe
    Posts
    214
    Quote Originally Posted by JPC-Bilal View Post
    Hi John,

    Since both control panels are different, direct migration is not possible. So in order to do it here are the steps:

    > First of all setup the domain you want to move to SDX account as Add-on. You can do it via cPanel of your account or contact technical support if you face any problem.

    > Then you will have a folder under public_html of your SDX account. Now you can simply move the data of the domain from Plesk server to SDX account in that folder using FTP.

    > After that you can generate and download dumps of the databases required by that particular domain and upload them via FTP to SDX account. Support can help you restoring them. You will have to recreate database users and make the required changes in scripts and update new db names, users etc.

    > Once done you can change the Nameservers at registrar of that domain to point it to JaguarPC SDX servers. Here are the Nameservers:
    JaguarPC LLC.
    I can't make that procedure work. I have a customer who wants to migrate a domain that's with another provider, as an add-on to a domain that she already hosts with me.

    If she were to host a new domain with me, I'd set up the account, she's FTP to it, then we'd set up the registrar nameservers.

    In this case, trying to set it up in cPanel as an add-on, I get the following message:

    "Error from park wrapper: Using nameservers with the following IPs: 117.58.251.14,117.58.251.6 Sorry, the domain is already pointed to an IP address that does not appear to use DNS servers associated with this server. Please transfer the domain to this servers nameservers or have your administrator add one of its nameservers to /etc/ips.remotedns and make the proper A entries on that remote nameserver."

    So it can't be made ready for FTP in advance. And to change the nameservers first will mean loss of availability, and loss of emails.

    What's the procedure?

  11. #11
    JPC Dream Team
    Join Date
    May 2007
    Location
    JPC
    Posts
    635
    Quote Originally Posted by Bellthorpe View Post
    I can't make that procedure work. I have a customer who wants to migrate a domain that's with another provider, as an add-on to a domain that she already hosts with me.

    If she were to host a new domain with me, I'd set up the account, she's FTP to it, then we'd set up the registrar nameservers.

    In this case, trying to set it up in cPanel as an add-on, I get the following message:

    "Error from park wrapper: Using nameservers with the following IPs: 117.58.251.14,117.58.251.6 Sorry, the domain is already pointed to an IP address that does not appear to use DNS servers associated with this server. Please transfer the domain to this servers nameservers or have your administrator add one of its nameservers to /etc/ips.remotedns and make the proper A entries on that remote nameserver."

    So it can't be made ready for FTP in advance. And to change the nameservers first will mean loss of availability, and loss of emails.

    What's the procedure?
    There is a way around this via WHM i.e. create an addon without pointing DNS. Say you want an addon abc.com and you have domain.com. You just need to do this.

    1- Create a subdomain abc.domain.com.
    2- Go to "WHM >> DNS Functions >> Park a Domain" and park abc.com over abc.domain.com. This will create it as addon.

    If you do not have WHM access i.e. you own a shared/SDX account, you can open a support ticket after creating the subdomain and we will create the addon for you in no time.
    Jawad A.
    JaguarPC
    Site Links:
    Knowledge Base | Network Status

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •