Results 1 to 6 of 6

Thread: Massive backup

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    3

    Exclamation Massive backup

    For all intents and purposes, let's say I've got a reseller account on a host's server, but no shell access, and needless to say, no root access. I want to be able to back up the info from ALL the domain accounts under my reseller account, and not just the home directories, but the mysql and aliases as well, for each domain. I've got a LOT of domains, so going through every cpanel and creating a backup would take a rediculous amount of time.

    Is there some way for me to backup every domain through WHM, or would I need some sort of script or cronjob to do it?

    Any help would be appreciated.

    --TD

  2. #2
    Member
    Join Date
    Oct 2005
    Posts
    20

    Default

    Since you are on a reseller level, I think you can NOT.

  3. #3
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    I'd say that it would be possible to script the backup process since a given user would certainly have permission to access all the files that need backing up. And this too could then be scheduled as a cron job.

    However as you don't have root access I can't see how you could get the script to run for all the users for which it would be needed. Unless you happen to have all accounts' usernames and passwords, in which case the script might be able to switch user from time to time.

    Either way, not a straightforward task.

  4. #4
    Registered User
    Join Date
    Jan 2006
    Posts
    3

    Default Possibly...

    Quote Originally Posted by webignition
    I'd say that it would be possible to script the backup process since a given user would certainly have permission to access all the files that need backing up. And this too could then be scheduled as a cron job.

    However as you don't have root access I can't see how you could get the script to run for all the users for which it would be needed. Unless you happen to have all accounts' usernames and passwords, in which case the script might be able to switch user from time to time.

    Either way, not a straightforward task.

    I do have all the usernames and passwords for the accounts - they're all my sites, I used whm to organize stuff was all.

    What kind of a script or cronjob would I need to run? I dont know exactly how cpanel lays out the data files, etc.

    Thanks in advance! :-)

    --TD

  5. #5
    Member
    Join Date
    Apr 2003
    Posts
    479

    Default

    I think you would have to write a script to interface with cpanel's backup page and download them all.

    I don't think you would need to have all the passwords; just all the usernames and the reseller pass.

    You could use PHP:
    PHP Code:
    <? 
    fopen("http://$username:$resellerpass@localhost:2082", "r");
    ?>
    Scan that page for all backup urls using the preg_match_all function, and then download those.

    I can write it for you for a fee - PM me if you're interested.

  6. #6
    Registered User
    Join Date
    Jan 2006
    Posts
    3

    Default Awesome Idea!

    I didn't even think of that! That's a great idea. I'll write up the script tonight.

    Thanks for all the help! :-)

    --TD

Similar Threads

  1. Massive failures from IP
    By praveenkv1988 in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 12-08-2008, 10:43 PM
  2. Massive amount of failures from IP (what IP?)
    By boatdesign in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 12-01-2008, 03:17 AM
  3. Massive SQL Problems
    By GCIS in forum cPanel & WHM Discussions
    Replies: 10
    Last Post: 06-07-2007, 11:51 AM
  4. Massive Headaches (Backups)
    By K e N in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 08-25-2006, 11:07 AM
  5. Massive backup tool for resellers/uses
    By albatroz in forum cPanel Developers
    Replies: 2
    Last Post: 09-14-2005, 01:09 PM