Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Backup only account config?

Discussion in 'Data Protection' started by tbenoit, May 13, 2010.

  1. tbenoit

    tbenoit Member

    Joined:
    Apr 15, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    Is there an officially supported way to only backup the account configuration (everything needed to recreate the account but not the homedir, MySQL databases, etc)?

    If not, will these edits to /scripts/cpbackup perform the trick (we'd make a copy of it and edit/run the copy):

    Code:
    Change:
    
    my $pkgacct = '/scripts/pkgacct';
    
    To: 
    
    my $pkgacct = '/scripts/pkgacct --skiphomedir';
    Code:
    Change:
    
    $ENV{'pkgacct-mysql'} = 'yes';
    
    TO:
    
    $ENV{'pkgacct-mysql'} = 'no';
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    8
    Trophy Points:
    193
    Account details are stored in /var/cpanel/users ....

    I am more curious the specific application you have mind here that you would want full account details but not account content backed up.
     
  3. tbenoit

    tbenoit Member

    Joined:
    Apr 15, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    I'd like cPanel to be able to restore/recreate accounts from a cPanel backup but have no need for it to restore the files and MySQL databases.

    Just about any backup software running on a server at a regular interval can restore the individual cPanel user's files and databases. With that running regularly there is no need to perform a full cPanel backup, just enough to allow cPanel to restore the account/settings/email accounts/forwarders/DNS/etc, but not the homedir or MySQL databases.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice