Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    4

    Default Backing up and Restoring accounts

    I own an interworx server and I'm trying to migrate my existing clients to my new cpanel server.

    I need to know of an effective method of doing this, does anyone have any ideas?

    Any help offered would be greatly appreciated.

    I understand this is a manual process, I just need to know exactly what I need to do. What SSH commands would be best used to compress the home directory (I need to maintain file permissions) and how to properly move the mysql databases and mysql account information.

    Please advise. Ty
    Last edited by ihatetoregister; 07-28-2008 at 03:07 AM.

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    4

    Exclamation Interworx to cPanel account migration

    I'm currently in the process of migrating my interworx server over to my new cpanel server.

    I understand this is a manual process, but I need to know the best method of doing this.

    I need to know which SSH commands are best used to compress the interworx public_html folder while maintaining chmod permissions.

    Also, what is the best method of moving each individual database to the new account.

    I am willing to pay for quality advice, this is an urgent matter and I require immediate assistance.

    Thanks.

  3. #3
    Member
    Join Date
    May 2006
    Posts
    63

    Default Xfer

    Hi,

    Have you tried rsync?

    Rgrds,
    -Xyber13.

  4. #4
    Registered User
    Join Date
    May 2006
    Posts
    4

    Default

    No I have not, is that something that needs to be added to the machine?

    Sorry, I'm fairly new with Linux and SSH.

    If you can provide me some insight on rsync, I'll really appreciate it!

  5. #5
    Member
    Join Date
    May 2006
    Posts
    63

    Default Rsync

    Quote Originally Posted by ihatetoregister View Post
    No I have not, is that something that needs to be added to the machine?

    Sorry, I'm fairly new with Linux and SSH.

    If you can provide me some insight on rsync, I'll really appreciate it!
    Hello,

    You can check this simple guide out.
    TITLE: Using rsync to mirror data between servers

    Introduction
    This LinuxAnswer describes how to mirror 2 systems using rsync over ssh.
    I will only talk about a live server and a backup server where the backup server will connect to the live server to pull the data that is to be backed up.


    Assumptions
    1) You know how to open up a terminal and type a few basic commands.
    2) You have a working ssh server and client installed. If not then see:
    ftp://ftp.ca.openbsd.org/pub/OpenBSD...rtable/INSTALL
    3) You have private/public keys generated to allow passwordless logins to the live server form the backup server.

    Why would you want to?
    There are many reasons so I'll just list a few:
    1) Data transfer is fast as rsync only copies modified files
    2) Running it over ssh encrypts the data transfer so it is more secure than other methods


    The real howto
    1) Decide on the directories you need to backup on the live server assuming it is a webserver this may be "/home/httpd"
    2) Decide on the options you want. The most common I would use are:
    -a Archive mode this is a combination of "-rlptgoD" basically it works recursively and maintains file information such as creation dates, permissions etc. See the man page for detailed info.
    -v Increase the verbosity. This will let you see what is transferred
    -z Compress data so that it is a quicker transfer
    --delete-after Delete any files that have been deleted on the live server
    -e ssh Most importantly, run the transfer over an ssh connection
    A full list can be obtains from "man rsync".
    3) Try a dry run on the backup server with "-n" to make sure any typos don't totally screw your system. This will just show what would be done:
    rsync -e ssh -avzn --delete-after user@liveserver:/home/httpd /home
    4) If everything went as expected you can give it a go without -n
    rsync -e ssh -avz --delete-after user@liveserver:/home/httpd /home
    You should get the info about the files being transferred. Running it again should be quicker as very little has probably changed.
    5) That should be it, just try creating and deleting a few files and run rsync to make sure the changes occur


    Automating the process
    The obvious answer running the rsync commands on the backup server via cron.
    A basic example being to mirror every hour on the hour:
    0 * * * * rsync -e ssh -avz user@liveserver:/home/httpd /home 2>&1 > /var/log/hourly_backup.log
    Then remove deleted files every night:
    30 0 * * * rsync -e ssh --delete-after -avz user@liveserver:/home/httpd /home 2>&1 > /var/log/nightly_backup.log

    -Quoted From Linux QN.
    Rgrds,
    -Xyber13.
    Last edited by xyber13; 07-28-2008 at 06:45 PM.

  6. #6
    Registered User
    Join Date
    May 2006
    Posts
    4

    Default

    Good guide for sure, can I trouble you to help me figure out the proper command to execute to copy my "public_html" directory over including permissions to the other server?

    Just so I know it won't mess up.

    I want to copy it not delete the originals, just copy.

  7. #7
    Member
    Join Date
    May 2006
    Posts
    63

    Default Delete

    Quote Originally Posted by ihatetoregister View Post
    Good guide for sure, can I trouble you to help me figure out the proper command to execute to copy my "public_html" directory over including permissions to the other server?

    Just so I know it won't mess up.

    I want to copy it not delete the originals, just copy.
    Hi,

    I think you are confused over the delete function. Since Rsync is a sync tool between two servers, it can make the backup server mirror the live server of sorts. Hence, since mirrors are identical, if you delete a file on the live server, it will also delete that particular file on the backup server. This tool can be used as an incremental backup between live and backup servers.

    Rgrds,
    -Xyber.

Similar Threads & Tags
Similar threads

  1. Backing up and restoring
    By Supertech in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-23-2008, 08:34 AM
  2. Backing up All Accounts
    By brivers in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-28-2005, 11:17 AM
  3. Backups are not backing up all accounts
    By hostit1 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-17-2005, 07:51 PM
  4. Help with backing up accounts
    By wsenter in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-24-2005, 03:30 PM
  5. Help with backing up accounts on another server.
    By phantom2 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-19-2005, 05:32 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube