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!

I need to export everything through command line

Discussion in 'Data Protection' started by hellomotow, Nov 19, 2011.

  1. hellomotow

    hellomotow Member

    Joined:
    Nov 19, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Right now I have only access through SSH.

    I want to reformat and restore everything.

    However first I need to make a full backup.

    How can I do this though SSH only?
     
  2. minosjl

    minosjl Well-Known Member

    Joined:
    Jun 4, 2011
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    India
    cPanel Access Level:
    Root Administrator
    hi,

    If you have configured your WHM backup previously , you can get the backup by manually running the script " /usr/local/cpanel/scripts/cpbackup " in the shell .

    In the above is not done you can make a list of your domains and put in in a for loop for account backup.

    for x in `ls /var/cpanel/users` ; do /scripts/pkgacct $x ; done
     
    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