Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 16 to 17 of 17
  1. #16
    Member
    Join Date
    Sep 2003
    Posts
    124

    Default Re: Backups/Restore and Migration Calls

    DavidN,

    Is there really no way to specify the path to the file that needs to be restored? I am trying to write a script for doing migrations from servers that do not have root access and have multiple accounts to restore. Also, with the RestoreAccount api function, do resellers have access to it?

  2. #17
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    525

    Default Re: Backups/Restore and Migration Calls

    I'm fairly certain that only root or a reseller with 'all root' access can exercise that remote API call. An average, "can create accounts", reseller is not privileged enough. This coincides with how WHM's "Main >> Backup >> Restore Backups" works (which I'm certain requires 'all root' privs). And, like that function, it is designed to specifically work with the centralized backups generated by WHM's "Main >> Backup >> Configure Backup". It's really not for migration purposes, despite the backup file architecture being nearly identical.

    I'm not sure what the best course of action is for you. I guess the long way (and maybe the only way at this time) would be to create a custom API2 module that the reseller can invoke which utilizes privilege escalation. But even then, if there isn't a privileged user (or some sort of trusted,surrogate root) on the destination server...you're kinda sunk.

    Unfortunately, until cPanel comes out with a migration/package/restore API, it's going to be difficult for you to provide the function to your customers that you desire...at least without a significate amount of code and security implications.

    Sorry I can't be more help,
    -DavidN
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Request

Similar Threads & Tags
Similar threads

  1. Problem with backups/migration after cpanel update
    By cesarlwh in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-09-2011, 01:18 AM
  2. Question About Restore restore multiple backups via ssh?
    By assassin85 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-13-2009, 08:33 AM
  3. restore backup: backups not found in /restore/cpbackup
    By Morgana in forum Data Protection
    Replies: 1
    Last Post: 08-12-2008, 08:49 AM
  4. 'Restore Backups' / 'Restore Multiple Backups' - No users listed!
    By mitu in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-31-2007, 04:08 AM
  5. if you need to restore backups...
    By Lem0nHead in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-10-2004, 07:10 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube