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.

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:
    6
    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
     
  2. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    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.
     
  3. iHost.net.nz

    iHost.net.nz Well-Known Member

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

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

    bandwidth is no problem :)
     
  4. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    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.
     
  5. zentity

    zentity Well-Known Member

    Joined:
    Jun 16, 2004
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
  6. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    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.
     
  7. zentity

    zentity Well-Known Member

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

    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.
     
  8. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    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
    ===========================================
     
Loading...

Share This Page