To get on the fast backup cPanel

Discussion in 'Site & Server Administration' started by sendemi, Feb 23, 2009.

  1. #1
    Sometimes in different ways on the cPanel backup can be forced to take. Faster than normal to get backup /scripts/pkgacct software to buy I'll give you some backup. User-based cloning of this software for the reverse process, the /scripts/restorepkg a complete software to a server to another server, I will talk about how we can transfer.

    To backup /scripts/pkgacct our writing will be sufficient linuxtr .. Systems in linuxtr user account name has to start back up immediately and backup tar.gz extension in the form of compressed file in / home directory will take. The file name / home directory cpmove-linuxtr.tar.gz is called. File RSYNC or SCP our method and the other is a server and another file, / home directories by putting /scripts/restorepkg use the program and re-backup has been restored so we can be. Restore the second server for / home directory, move to the cpmove-linuxtr.tar.gz file in this way are called. /scripts/restorepkg linuxtr

    Our second server in the command above me in that specific directory "/ home, / root etc." Linuxtr named backup starts to search .. After finding will begin to restore a backup file. These two software more quickly than in the normal backup process and backup power can do. Now, the whole server with the same system, how to backup a second server, and at how re-backup can be restored so I will describe it. As you would imagine for the command will benefit from. All server / scripts / pkgacct software to back up the bottom of the command in use. For b in $ (ls / var / cPanel / users); do / scripts / pkgacct $ b; done are starting to back up all users and users / var / cPanel / collect from users .. Backing up the / home directory is in the format .. cpmove-USER.tar.gz finished all the backup sites to move with the SCP method, I will tell .. Example ip address 10.0.0.3
    cd /home
    scp cpmove-* root@10.0.0.3:/home

    10.0.0.3 number if that will move the server ip ssh port 22 is different from the 9980 for example the following command, you must use. cd / home scp-P9980 cpmove-* root@10.0.0.3: / home after the second server to transfer all the backup starts .. Reserves at the end of the transfer process, this process is the opposite of /scripts/restorepkg software for use with the backup and restore all the commands, you can hurt the bottom is. Cd / home for r in $ (ls | grep tar.gz | cut-d--f2 | cut -d.-f1); do /scripts/restorepkg $ r; done ls-la output cpmove through and delete the tar.gz extension, leaving only the users and this in turn restorepkg software as a parameter to all the user names will begin. In this way, moving to a new server, all without waiting for backup and restore individual becomes. This backup process disk structure is damaged or is not correct with fsck system very useful way to be a regular server, such as migration in other ways are faster than you will save time.

    Source:
    http://linux-system-management.blogspot.com
     
    sendemi, Feb 23, 2009 IP