Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2009
    Posts
    88

    VPS Transfer of data to from any vps platform to openvz+solusvm

    I'm kind of new to vps' and sysadmin stuff... but I'm getting the knack of it pretty quickly. I just transferred a vps from solusvm to solusvm which wasn't too hard because i just rsynced the /vz/root/CTID folder over and imported the vps on new server for that client and just updated the conf file settings in /etc/vz/conf/CTID.conf and rebooted...voila!

    this is why I like the way solusvm + openvz platform as it is very easy to manage and understand even on the main centos node in SSH. you can see each individual folder/files of the vps' OS in the /vz/root/CTID. I've installed other vps' on xen and it was weird, like the vps was a lvm partition (pvcreated) or it was a tgz file that I couldn't view it's files on main node at all.

    which brings me to the question... what if you transfer a vps from a different platform that's using these lvm partitions or tgz to solusvm openvz. Is there a trick to rsyncing these types of vps' and then Does solusvm somehow import those partitions as well or is there something special you have to do with these kinds of vps data, like unpack before rsync or something? I'd like to know in case I come across a client that wants to transfer from a different vps platform. Also, maybe others might want to know too.

  2. #2
    Join Date
    Jun 2003
    Location
    UK
    Posts
    6,616
    SolusVM users tar.gz templates which it then unpacks onto the LVM which are then booted as the root filesystem of the Xen VM
    Russ Foster - Industry Curmudgeon
    Freelance Sysadmin for Hire - email vaserv@gmail.com

  3. #3
    Join Date
    Apr 2009
    Posts
    88
    a thought just occured to me as I posted this. it would probably be best just to rsync / (whole vps root) directly from the remote vps root using root login or key? like this:

    rsync -avz --delete -e "ssh -i /root/.ssh/id_dsa -pxxxx" remotevpsIP:/ /vz/root/CTID/

    and then import into solusvm tool and reboot.
    Last edited by sven30; 07-01-2010 at 01:27 PM.

  4. #4
    if you are on openvz, try this command to backup whole vps:



    $sudo tar cvzpf /backup/Backup.tgz --same-owner --exclude=/backup/Backup.tgz --exclude=/backup/error.log --exclude=/proc/* --exclude=/dev/* --exclude=/mnt/* --exclude=/sys/* --exclude=/tmp/* / 2>/backup/error.log


    * and restore on new vps with:
    $sudo tar xvzf /home/Backup.tgz -C /


    make sure you change or update all the network file and ips before you log out.
    ControlVM.com :: Elastic Cloud Hosting Alternatives to VPS Reliable Cloud Server
    Enterprise Hosting @
    Malaysia ● Germany ● USA ● Singapore
    We Accept: Paypal
    Alipay GrabPay Credit/Debit Card FPX Bank Transfer Bank TT

  5. #5
    Join Date
    Apr 2009
    Posts
    88
    Quote Originally Posted by CH Hosting View Post
    if you are on openvz, try this command to backup whole vps:



    $sudo tar cvzpf /backup/Backup.tgz --same-owner --exclude=/backup/Backup.tgz --exclude=/backup/error.log --exclude=/proc/* --exclude=/dev/* --exclude=/mnt/* --exclude=/sys/* --exclude=/tmp/* / 2>/backup/error.log


    * and restore on new vps with:
    $sudo tar xvzf /home/Backup.tgz -C /


    make sure you change or update all the network file and ips before you log out.
    Thanks! yeah I see the exclusions, that must be the correct way to do it... this would be for backing up any centos system right? What if there is no room left on the vps you're backing up? Then I guess rsync with the same exclusions?

Similar Threads

  1. Replies: 4
    Last Post: 03-09-2010, 05:11 PM
  2. VPS: solusvm - openvz
    By hbhb in forum Hosting Security and Technology
    Replies: 4
    Last Post: 12-31-2009, 10:24 AM
  3. Replies: 2
    Last Post: 11-05-2009, 10:47 AM
  4. [US/CA/UK] SuperBytes ~ OpenVZ VPS From $4.50 USD! SolusVM
    By Matt - Kerplunc in forum VPS Hosting Offers
    Replies: 0
    Last Post: 10-18-2009, 03:31 AM
  5. [US/CA/UK] SuperBytes ~ VPS From $4.50 a month! OpenVZ+SolusVM CP!
    By Matt - Kerplunc in forum VPS Hosting Offers
    Replies: 0
    Last Post: 10-03-2009, 06:57 PM

Posting Permissions

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