I need to export everything through command line

hellomotow

Member
Nov 19, 2011
8
0
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?
 

minosjl

Well-Known Member
Jun 4, 2011
168
0
66
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