Comments on: Howto backup cpanel via rsync https://www.akamaras.com/cpanel/howto-backup-cpanel-via-rsync/ Yet another blog Mon, 14 Oct 2013 18:46:55 +0000 hourly 1 https://wordpress.org/?v=5.4.10 By: akamaras https://www.akamaras.com/cpanel/howto-backup-cpanel-via-rsync/#comment-34095 Mon, 14 Oct 2013 18:46:55 +0000 http://www.akamaras.com/?p=2171#comment-34095 In reply to Douglas.

Hi Douglas,

Cpanel has the feature you need for the migration. When you’re done setting up the new server, you can login to the new servers whm and go to :

Home » Transfers » Copy Multiple Accounts/Packages From Another Server

From there give the credentials for the old server and choose the packages and the accounts you want to migrate, dns zone files are being updated automatically.

If you’re totally out of hhd space you could try migrating the whole server with rsync but you must be careful about what to exclude and the permissions/owners the files have.

Another thing you could do if you’re totally out of hdd space is to manually migrate one cpanel account that takes lots of hdd space and afterwards delete it from the old server and migrate the rest using whm copy accounts feature.

]]>
By: Douglas https://www.akamaras.com/cpanel/howto-backup-cpanel-via-rsync/#comment-34094 Mon, 14 Oct 2013 14:43:44 +0000 http://www.akamaras.com/?p=2171#comment-34094 Hi there. Thanks so much for this tutorial. I have a question. I do not have enough disk space to backup my cpanel server. I have a second server installed that I want to use rsync so that I can get the new server up and running with WHM and CPANEL. However, I have only seen where I can create a local backup to move to a remote server. I need the ability to use rsync or anything you could mention that would allow me to do a “live” move. Is that possible? Any suggestions on moving a CPANEL server with rysnc – like what to turn off and the caveats. I have zero experience moving cpanel servers…

Wishing you very well,
Douglas

]]>
By: Paul https://www.akamaras.com/cpanel/howto-backup-cpanel-via-rsync/#comment-26515 Tue, 23 Jul 2013 09:20:51 +0000 http://www.akamaras.com/?p=2171#comment-26515 There’s a reason rsync to a remote nfs disk is slow. There is only one rsync instance reading files that are to be backed up, then reading the same files from the nfs mount and comparing. Rsync not only has to read every byte of local files it also has to read every byte of the files on the remote nfs mount.

With rsync over ssh there is an rsync at each end. Each reads every byte of the files on the local disc but they send differences over the network.

]]>
By: Aladdin https://www.akamaras.com/cpanel/howto-backup-cpanel-via-rsync/#comment-21947 Tue, 16 Apr 2013 23:15:20 +0000 http://www.akamaras.com/?p=2171#comment-21947 In reply to MetaTrader 4 MQL Services.

It doesn’t have to be passwordless because you can use password option over tcp port 873

]]>
By: akamaras https://www.akamaras.com/cpanel/howto-backup-cpanel-via-rsync/#comment-8925 Fri, 26 Oct 2012 09:49:11 +0000 http://www.akamaras.com/?p=2171#comment-8925 In reply to Nick.

No it won’t. You can easily delete the data from the local backup folder by adding

rm -Rf /backupdir/*

at the end of “/scripts/postcpbackup”

But you will lose the incremental part of the backup, since everything will be recreated every time cpbackup is executed.

Maybe the default ways of cpbackup (via ftp or nfs) suit you better.

]]>
By: Nick https://www.akamaras.com/cpanel/howto-backup-cpanel-via-rsync/#comment-8913 Fri, 26 Oct 2012 08:25:55 +0000 http://www.akamaras.com/?p=2171#comment-8913 Hi,

Great tutorial but one question. Will this script delete the data from the local backup folder after it’s been sent to the remote backup server?

Thanks!

]]>
By: akamaras https://www.akamaras.com/cpanel/howto-backup-cpanel-via-rsync/#comment-5185 Mon, 27 Aug 2012 15:34:47 +0000 http://www.akamaras.com/?p=2171#comment-5185 In reply to Owen Cruz.

I’ll create an additional post sometime on howto use rsync with passwordless keybased authentication. In the meanwhile a google search will give you plenty of tutorials

For rsync installation a simple

yum install rsync

for red-hat based distributions or

apt-get install rsync

for debian based distributions will do.

]]>
By: Owen Cruz https://www.akamaras.com/cpanel/howto-backup-cpanel-via-rsync/#comment-5184 Mon, 27 Aug 2012 14:58:21 +0000 http://www.akamaras.com/?p=2171#comment-5184 This is exactly what I’m looking for. Though this tutorial would have been complete if more details of below statement is included.

“To backup with rsync and ssh you’ll have to install rsync to your servers and setup a passwordless key based authentication for ssh.”

Anyhow, I’m Googling to see how to setup rsync. 🙂

]]>
By: akamaras https://www.akamaras.com/cpanel/howto-backup-cpanel-via-rsync/#comment-4485 Mon, 06 Aug 2012 14:42:58 +0000 http://www.akamaras.com/?p=2171#comment-4485 In reply to madpato.

Hello,

You have to create the “postcpbackup” file first and then you’ll see it.

]]>
By: madpato https://www.akamaras.com/cpanel/howto-backup-cpanel-via-rsync/#comment-4484 Mon, 06 Aug 2012 14:38:55 +0000 http://www.akamaras.com/?p=2171#comment-4484 Hi

which version of cpanel has that option “Execute Pre/Post Backup Script” i have whm 11.32.3 and i dont have such option.

Thanks.

]]>