Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    83

    Default Manual Backups - pkgacct and restorepkg

    Hi,
    I am trying to write my own load sensitive backup script to basically replace the WHM one - which is great but I need to change the time of backups and spread them over a longer time period to reduce server load.

    So - I have found that I can manually package a users account using pkgacct - this creates a cpmove-<username>.tar.gz file in home directory. Then I've found I can use restorepkg to restore it again. But I would also like to be able to use the Backup Restore section in WHM, but it fails. If I move the cpmove file to the /backup/cpbackup/daily/ directory and rename it <username>.tar.gz - if I then go to the WHM restore daily backup I get:

    Extracting tarball...................
    Done
    Extracting Domain....Done
    Sorry, the copy failed. Unable to find the cpanel user file
    Account Restore Failed...

    I've tried this method with 2 accounts but both give the same error - does anyone know why or how to fix this?
    Thanks

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2004
    Posts
    22

    Default

    bump

    I get the exact same error. I have moved three accounts with no problem, but this last one gives me the same error.

    I have seen multiple posts with this problem but no explanations. Anyone?

  3. #3
    Member
    Join Date
    Jun 2004
    Posts
    78

    Default

    What kind of backups do you have selected within your whm - Incremental or .tar.gz backups?

    You need to have .tar.gz backups selected in order to restore any .tar.gz backups - I'll have a play with this and update you what I find since its a while that I restored an account that way
    Dedicated Servers - Reseller Hosting
    cPanel Partner NOC - www.zentity.com

  4. #4
    Member
    Join Date
    Jun 2004
    Posts
    78

    Default

    If you want to restore a backup made with pkgacct via the /backup/cpbackup/daily for instance, then you need to do the following.

    1. Make sure that non incremental backups are selected.
    2. You need to untar the cpmove-user.tar.gz backup when you have created it using pkgacct user.
    3. You need to rename the resulting cpmove-user directory to user (Just the same format as your regular backups)
    4. Tar the user directory up to be user.tar.gz then drop it into your /backup/cpbackup/daily
    5. Use whm daily backup restore to restore that users backup

    Your accounts aren't restored the way you are doing it (renaming the .tar.gz only) as simply renaming the .tar.gz backup to user.tar.gz will still extract a directory named cpmove-user - The backup restore isn't looking for cpmove-* its only looking for user

    Alternatively upload the cpmove-user.tar.gz file and use the restore full backup feature within whm

    Hope that helps.
    Last edited by zentity; 08-15-2004 at 04:10 AM.
    Dedicated Servers - Reseller Hosting
    cPanel Partner NOC - www.zentity.com

Similar Threads & Tags
Similar threads

  1. /scripts/restorepkg question - can 2 or more restorepkg run at the same time?
    By sharmaine001 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-05-2010, 10:54 AM
  2. pkgacct/restorepkg replacement?
    By xous in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-08-2008, 04:11 PM
  3. Symbolic links (ln -s) screwed up on backups /scripts/pkgacct
    By Francisco in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-14-2008, 10:47 AM
  4. Bandwidth usage lost after pkgacct / restorepkg
    By nicklas in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-11-2007, 02:58 AM
  5. mass restorepkg( messy ) mass pkgacct
    By robert M in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-22-2005, 09:28 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube