Need some qucik help with cpmove

impload

Member
Nov 2, 2009
16
0
51
Hi so I am trying to restore a cpmove but It says this:

This feature will restore full backups, cpanel backups and cpanel move files in the format of: cpmove-user.tar.gz, user.tar.gz, backup-date_time_user.tar.gz

The files must be in one of these directories on the server: /home, /home2, /home3, /root, /usr, /usr/home, /web

You must upload the file to one of the above locations before using this feature.

I know I need to move the cpmove file to /home through ssh but i am not familiar with it so can someone show mehow to do that? Please and thanks guys :)
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
did that but im still lost...im new to this. can someone tell me exactly what i should type into the command line ssh and an example?
Where is the full account backup currently located?

Is it already located on the new server that you need to restore (extract) it on?
 

impload

Member
Nov 2, 2009
16
0
51
did that but im still lost...im new to this. can someone tell me exactly what i should type into the command line ssh and an example?
 

impload

Member
Nov 2, 2009
16
0
51
Where is the full account backup currently located?

Is it already located on the new server that you need to restore (extract) it on?

Hello thanks for the reply.
Yes the file is on the server i want to restore it on already.

It is here /home2/impload/public_html/CPMOVEFILE

What command do i need to do to make it be at /home2/CPMOVEFILE

:)
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
Hello thanks for the reply.
Yes the file is on the server i want to restore it on already.

It is here /home2/impload/public_html/CPMOVEFILE

What command do i need to do to make it be at /home2/CPMOVEFILE

:)
To accomplish either copying the file, or moving the file, either of the following two commands could be used:

To copy the file:
Code:
# cp -pv /home2/impload/public_html/CPMOVEFILE /home2/CPMOVEFILE
To move the file:
Code:
# mv -v /home2/impload/public_html/CPMOVEFILE /home2/CPMOVEFILE

Instead of relocating the cpmove file and using WHM, there is another option that can be used to skip copying or moving the file, in case you would like to restore via root SSH access; this can be accomplished using the "restorepkg" script, as seen below
Code:
# /scripts/restorepkg /home2/impload/public_html/CPMOVEFILE
To see available command-line options (CLI switches) for the restorepkg script, you may also execute it without any arguments, such as the following example:
Code:
# /scripts/restorepkg