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!

Restoring a backup already on the server??

Discussion in 'General Discussion' started by iHost.net.nz, Sep 1, 2004.

  1. iHost.net.nz

    iHost.net.nz Well-Known Member

    Joined:
    Aug 6, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    156
    I did a full backup...

    but now I want to restore it..

    The file is pretty big, and will take up loads of bandwidth..

    Is there a way to restore it while its already on the server??

    SSH possibly? Will it restore ALL the files/settings? :confused:

    Cheers :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,191
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    Root Administrator
    is there a backup already at the server ? then you can do it . else no matter whether you scp it or ftp it; your bandwidth is sure to go.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. iHost.net.nz

    iHost.net.nz Well-Known Member

    Joined:
    Aug 6, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    156
    yeah....

    so what I can do is unzip it using the ungzip command? :confused:

    bandwidth is no problem :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,191
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    Root Administrator
    you can use the restore account feature at the WHM for this. I do not think untaring it manually is a feasible solution.

    It could have been done if you are restoring one account. Else it is better to make your WHM do the work.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. zentity

    zentity Well-Known Member

    Joined:
    Jun 16, 2004
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    156
    Place the full backup tar.gz file in /home and run

    /scripts/restorepkg user ('user' being the cpanel account username for that backup)

    or use whm to restore the backup as someone already mentioned.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,191
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    Root Administrator
    this is fine in case he has a single domain to restore. In case of multiple domains tar'd togather he will have to write a script to update all the users.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. zentity

    zentity Well-Known Member

    Joined:
    Jun 16, 2004
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    156

    Create a file (userlist) with all the user names, 1 per line in it, that you have back up files of in /home, place all the backup files in /home


    Code:
    #!/bin/sh
    for user in `cat userlist`
    do
    /scripts/restorepkg $user
    done
    Running that that would work ok for multiple accounts.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,191
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    Root Administrator
    in case they are individual cpmove.tar files then this is good in case you want a complete server restore.
    ===========================================
    #!/bin/sh
    for user in `cat /etc/trueuserdomains | cut -d : -f 2`
    do
    /scripts/restorepkg $user
    done
    ===========================================
     
    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