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.

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:
    1
    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:
    324
    Likes Received:
    3
    Trophy Points:
    18
    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,557
    Likes Received:
    7
    Trophy Points:
    38
    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?
     
  4. impload

    impload Member

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

    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,557
    Likes Received:
    7
    Trophy Points:
    38
    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
     
Loading...

Share This Page