andreyf
03-13-2008, 12:13 AM
I am just wondering if it is possible to perfom the backup of all my clients' accounts at once using WHM or I need to do backups for each of them separately in their Cpanels?
![]() | View Full Version : How to backup reseller's accounts andreyf 03-13-2008, 12:13 AM I am just wondering if it is possible to perfom the backup of all my clients' accounts at once using WHM or I need to do backups for each of them separately in their Cpanels? Aussie Bob 03-13-2008, 12:25 AM Separate full cpanel backups would be best here. Log into each of your domain's cpanel's, and generate the full cpanel backup, and download that to your PC, or FTP it across to some secure backup space online. andreyf 03-13-2008, 12:43 AM Yes, I know this but if I have 1000 accounts in the future it will be difficult for me to bacup them separately. jtren 03-13-2008, 01:04 AM Separate full cpanel backups would be best here. Log into each of your domain's cpanel's, and generate the full cpanel backup, and download that to your PC, or FTP it across to some secure backup space online. Yes, that is the best way to back up all reseller account. It may take time to do the back up if you have more than 500 reseller account. Wouldn't be easy if we can use WHM or any other software to do the back up? One click backup something like that? websprite 03-13-2008, 05:53 PM There is various shell scripts that can automate the back-up of cpanel accounts. I have one that downloads home backups and db and I know of one other that runs from a cron job in cpanl and ftp fullbackups to a remote server. Let me know if you need them kjawaid 03-13-2008, 06:21 PM this is a very stupid question i know but i have no knowledge about corn jobs but will this thing allowed by hosts ?? and backups included mails, web and db backup? a dhcart 03-13-2008, 06:24 PM If you have a Cpanel reseller account when you cannot get backup all of the accounts at once. I think this function has only on a VPS or Dedicated Server. We have a lot of reseller accounts and hundred and hundred domains and we don't get backup of the resold accounts. This is imposible in practice. Each customer must do it itself(also our hosting provider gets backup all of the data which on the server to the second driver). websprite 03-13-2008, 06:28 PM I think both include mail, db and web The home-back-ups I run of my home machine when I feel like it, i think it needs to be run on either a Linux or OSX OS due to using a shell script with wget The other is a php script (located outside of the public_html) that is just run from the cron module in cpanel. I can't see this being a problem with most hosts aslong as you're not running every few minutes websprite 03-13-2008, 06:31 PM If you have a Cpanel reseller account when you cannot get backup all of the accounts at once. I think this function has only on a VPS or Dedicated Server. We have a lot of reseller accounts and hundred and hundred domains and we don't get backup of the resold accounts. This is imposible in practice. Each customer must do it itself. might only have 40 odd accounts, but the script I have running on my Mac, goes into each one at a time and downloads home back-ups automatically. Its a bit of a pain to set up cause you need username password amount of databases websprite 03-13-2008, 06:37 PM This is the one I use http://www.kieranoshea.com/files/kierans_nightly_backup_system_v2.txt Til 03-14-2008, 01:07 AM This is the script that I use: You have to setup a script for every account but you can use the resellerpassword and there is no need to specify the numbers of databases or their names. It generates a full backup and then sends that through ftp. Just replace the XXX's with the relevant information. Works great for me <?php // PHP script to allow periodic cPanel backups automatically. // Based on script posted by max.hedroom in cpanel.net forums // This script contains passwords. KEEP ACCESS TO THIS FILE SECURE! // ********* THE FOLLOWING ITEMS NEED TO BE CONFIGURED ********* // Info required for cPanel access $cpuser = "XXX"; // Username used to login to CPanel $cppass = "XXX"; // Password used to login to CPanel $domain = "XXX"; // Domain name where CPanel is run $skin = "XXX"; // Set to cPanel skin you use, so for example "rvlightblue" (script won't work if it doesn't match) // Info required for FTP host $ftpuser = "XXX"; // Username for FTP account $ftppass = "XXX"; // Password for FTP account $ftphost = "XXX"; // Full hostname or IP address for FTP host $ftpmode = "ftp"; // FTP mode ("ftp" for active, "passiveftp" for passive) // Notification information $notifyemail = "XXXl"; // Email address to send results // Secure or non-secure mode $secure = 0; // Set to 1 for SSL (requires SSL support), otherwise will use standard HTTP // Set to 1 to have web page result appear in your cron log $debug = 0; // *********** NO CONFIGURATION ITEMS BELOW THIS LINE ********* if ($secure) { $url = "ssl://".$domain; $port = 2083; } else { $url = $domain; $port = 2082; } $socket = fsockopen($url,$port); if (!$socket) { echo "Failed to open socket connection... Bailing out!\n"; exit; } // Encode authentication string $authstr = $cpuser.":".$cppass; $pass = base64_encode($authstr); $params = "dest=$ftpmode&email=$notifyemail&server=$ftphost&user=$ftpuser&pass=$ftppass&submit=Generate Backup"; // Make POST to cPanel fputs($socket,"POST /frontend/".$skin."/backup/dofullbackup.html?".$params." HTTP/1.0\r\n"); fputs($socket,"Host: $domain\r\n"); fputs($socket,"Authorization: Basic $pass\r\n"); fputs($socket,"Connection: Close\r\n"); fputs($socket,"\r\n"); // Grab response even if we don't do anything with it. while (!feof($socket)) { $response = fgets($socket,4096); if ($debug) echo $response; } fclose($socket); ?> |