error with accounts being transfered

cPanel, Industry leading hosting platform with world-class support.
Post Reply
ludolugo
Posts: 15
Joined: April 17th, 2020, 10:40 am

error with accounts being transfered

Post by ludolugo »

Hi,
We have a custom made application to tranfer accounts from server to server without using the transfer tool in cpanel, it works this way:
1. creates a cpmove with cpanel pkgaacct script
2. transfers cpmove file to new server
3. restores account in new server with cpanel restorepkg script
4. suspends the account in old server

the problem is that in jetbackup 5 the account in the new servers stays suspended but in cpanel is active https://prnt.sc/14u6c3g and the user can´t restore fron jetbackup https://prnt.sc/14u7fjt
JetAppsRichard
Staff Member
Staff Member
Posts: 50
Joined: January 1st, 2021, 12:51 am

Re: error with accounts being transfered

Post by JetAppsRichard »

Hello ludolugo,

JetBackup 5 relies on panel hooks to gather information about an account whenever an account is created/deleted/suspended/unsuspended etc.. It appears that using the cPanel restorepkg script results in some hooks not being triggered. JetBackup does automatically sync the accounts every 3 hours which would resolve this issue but I understand waiting for that long is not desirable. Instead, you could run our sync_accounts script manually after the restorepkg script is complete in order to update JetBackup's Account information for the account that was just created/restored. To do so please use the following command:

Code: Select all

/usr/local/jetapps/usr/bin/jetbackup5/sync_accounts $USERNAME
Where $USERNAME is the name of the account that was just restored. This should resolve the issue you are experiencing. Please let us know if you require further assistance.
Best Regards,
Richard, JetApps Team
Post Reply