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.

Missing cP Userfiles in roughly 200 Backups - What to do?

Discussion in 'General Discussion' started by stdout, Apr 2, 2006.

  1. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    root@shark [/backup/cpbackup/daily]# mv alto-sax.tar.gz /home
    root@shark [/backup/cpbackup/daily]# /scripts/restorepkg alto-sax
    Searching /home....
    Found alto-sax.tar.gz !
    <b>Moving Packge to /home/cprestore/alto-sax.tar.gz</b><Br>
    Extracting tarball....<script>window.scroll(0,175);</script>...............
    Done<br>
    Extracting Domain....Done<br>
    Sorry, the copy failed. Unable to find the cpanel user file. Is the archive missing (cwd: /home/cprestore loaded alto-sax/cp/alto-sax)?
    root@shark [/backup/cpbackup/daily]#
     
  2. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    Re

    root@shark [/backup/cpbackup/daily]# cat /home/cprestore/cpmove*/cp/alto-sax
    IP=xxxx
    STARTDATE=1052683726
    DNS=alto-sax.com
    RS=bluetrix
    OWNER=root
    PLAN=safvan_Plan-1
    MAXFTP=99999
    BWLIMIT=1258291200
    MAXSQL=99999
    MAXPOP=99999
    MAXLST=99999
    MAXPARK=99999
    MAXADDON=99999
    MAXSUB=99999
    LANG=EnglishCP
    root@shark [/backup/cpbackup/daily]#
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Have you checked the actual tarball:

    tar -tzf /home/alto-sax.tar.gz
     
  4. ispro

    ispro Well-Known Member

    Joined:
    Apr 8, 2004
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    18
    Chirpy, you should to know that this caused by cPanel, not by the archive intergrity.

    We had had such issues periodically. Mostly they were for backups created by /scripts/pkgacct
    The restore using /scripts/restorepkg doesn't work, but file in question does exist.

    THE SOLUTION: Rename tar-ball from USERNAME.tar.gz to cpmove-USERNAME.tar.gz

    This is the 'feature' of cPanel restore. If you have created backups manually they named as cpmove-someusername.tar.gz and you need to keep them the same!

    EDIT: If you wish to create backups without cpmove prefix, like backups script does, use this command /scripts/pkgacct USERNAME /backup backup where USERNAME is the account username you need to copy.
     
    #4 ispro, Apr 18, 2006
    Last edited: Apr 18, 2006
Loading...

Share This Page