Page 1 of 1

error with accounts being transfered

Posted: June 9th, 2021, 8:22 am
by ludolugo
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 and the user canĀ“t restore fron jetbackup

Re: error with accounts being transfered

Posted: June 11th, 2021, 2:11 am
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.