[Case 97497] restorepkg failing
HI,
Ticket number 4801685
There seems to be an issue with cpanel backup restore using restorepkg in version 11.42.1.5 . The steps are as follows,
1) Take the backup of user foo
# /scripts/pkgacct foo
2) Extract it to home
# cd /home
# tar -xzf cpmove-foo.tar.gz
# rm -f cpmove-foo.tar.gz
3) Now restore it using the following ,
# /scripts/restorepkg --force /home/cpmove-foo
It show the following errors ,
------
# /scripts/restorepkg --force --user /home/cpmove-foo
Using pre-extracted cpmove file
cPanel restorepkg 2
cPanel user: foo
Force Mode: yes
Reseller Privs Restore: yes
Found /home/cpmove-foo !
cpmove- prefix is missing, but non prefixed directory exists.. the cpmove- prefix discarded.
Extracting Domain....Done
Sorry, we were unable to restore the account. Information about inhouse's primary domain is either missing or corrupt. For more information, please examine /home/cprestore/foo/cp/foo
--------------
So it is failing to restore from this path. Looks like only tar files are restoring .
-
cPanel support team confirm this as a bug. So they opened an internel case for investigation case id 97497 0 -
Hello :) Internal case number 97497 is open to address this issue. The temporary workaround is to package the incremental backup directory into a cpmove tar file first, then run /scripts/restorepkg on the tar file: # tar czvf cpmove-example.tar.gz cpmove-example # /scripts/restorepkg /home/cpmove-example.tar.gz
Thank you.0 -
Dear Sir, any update please on this issue ? Unfortunately we cannot use the TAR workaround as it will take us a lot of time in case we restore all the accounts on the server ( we have a script executing Cpremote) 0 -
cPanel version 11.44 will include a resolution for case 97497. There is currently no time frame available on the release of version 11.44. In the meantime, you could setup a loop on the "tar" command so it runs for all accounts. Thank you. 0 -
cPanel 11.44 out . But the case 97497 doesn't seems to show as resolved yet. 0 -
You will not see internal case number 97497 in the change log because the issue is not applicable with the updated restorepkg script included with cPanel version 11.44. It's simply a case where the issue does not occur on 11.44, so no changes stemming from that internal case were required. Thank you. 0 -
We were in the middle of a server migration. The /scripts/restorepkg worked great for many large accounts. Then we upgraded WHM to RELEASE 11.44 After that, running /scripts/restorepkg gives an "Out of memory" error. Any ideas? 0 -
[quote="tribulant, post: 1671482">We were in the middle of a server migration. The /scripts/restorepkg worked great for many large accounts. Then we upgraded WHM to RELEASE 11.44 After that, running /scripts/restorepkg gives an "Out of memory" error. Any ideas?
Hi tribulant, Would you please open a ticket using the link in my signature. If you can provide one of the backup files that can't be restored with the "Out of memory" error, we should be able to determine the cause.0
Please sign in to leave a comment.
Comments
8 comments