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!

Backing Up Accounts Minus Actual Files/Folders

Discussion in 'General Discussion' started by bronco92, Jul 29, 2010.

  1. bronco92

    bronco92 Member

    Nov 18, 2006
    Likes Received:
    Trophy Points:
    Hi guys,

    I am about to do a complete OS Reload on my server.

    This server has over 400 accounts setup on it.

    I plan to backup the actual account files manually and then manually restore them once the OS Reload is complete.

    I want to know if there is a way of quickly taking a backup of all cPanel Accounts, minus the actual files/folders/mysql etc. I just want the actual accounts (e.g. their passwords etc) backed up, so that once I restore the accounts and then manually restore the actual files, everything will work again.

    Does anyone know how I could go about this? Thanks.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Jan 24, 2005
    Likes Received:
    Trophy Points:
    A OS reload will wipe out all the data. Do you have the backup of all the website files + their databases? BTW, in order to backup all the accounts excluding home directories and databases, you will have to write down the script yourself.

    The script will such that it will read each account one by one from /etc/trueuserdomains, move the public_html folder of that domain and the database to a temporary location, backup the account using pkgacct and place the folders back to the actual location, then read another user and so on...

    The script will be an easy one by the way. If you run into problems, paste the errors here.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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