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!

Need some qucik help with cpmove

Discussion in 'General Discussion' started by impload, Nov 2, 2009.

  1. impload

    impload Member

    Joined:
    Nov 2, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    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 :)
     
  2. cpanelinfoseeker

    cpanelinfoseeker Well-Known Member

    Joined:
    Oct 25, 2002
    Messages:
    325
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    NE Illinois
    cPanel Access Level:
    Root Administrator
    At your command prompt type

    man cp

    to learn about copying files, or

    man mv

    to learn about moving files

    Ron
     
  3. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,554
    Likes Received:
    9
    Trophy Points:
    168
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Where is the full account backup currently located?

    Is it already located on the new server that you need to restore (extract) it on?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. impload

    impload Member

    Joined:
    Nov 2, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    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?
     
  5. impload

    impload Member

    Joined:
    Nov 2, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    51

    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

    :)
     
  6. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,554
    Likes Received:
    9
    Trophy Points:
    168
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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
     
    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