Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Aug 2004
    Posts
    68

    Unhappy Restoring a backup already on the server??

    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?

    Cheers

  2. #2
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #3
    Member
    Join Date
    Aug 2004
    Posts
    68

    Default

    yeah....

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

    bandwidth is no problem

  4. #4
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #5
    Member
    Join Date
    Jun 2004
    Posts
    78

    Default

    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.
    Dedicated Servers - Reseller Hosting
    cPanel Partner NOC - www.zentity.com

  6. #6
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #7
    Member
    Join Date
    Jun 2004
    Posts
    78

    Default

    Quote Originally Posted by linux-image
    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.

    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.
    Dedicated Servers - Reseller Hosting
    cPanel Partner NOC - www.zentity.com

  8. #8
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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
    ===========================================

Similar Threads & Tags
Similar threads

  1. restoring a backup with username already in the server
    By sharmaine001 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-16-2009, 09:38 PM
  2. Problems restoring cP 10 backup on cP 11 server
    By Xenon101 in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 09-23-2009, 05:33 PM
  3. restoring server from backup
    By Aerethorn in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-28-2006, 05:17 PM
  4. Restoring a server without backup
    By Horta in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-15-2005, 05:35 PM
  5. Restoring a full server backup
    By gvard in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-16-2004, 05:12 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube