The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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:
    16
    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
     
Loading...

Share This Page