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
error with accounts being transfered
-
- Staff Member
- Posts: 97
- Joined: January 1st, 2021, 12:51 am
Re: error with accounts being transfered
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:
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.
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
Best Regards,
Richard, JetApps Team
Richard, JetApps Team