Our integration is hooking into
Account transfers currently user pkgacct script as follows:
and subsequently the cpmove archive is copied over to the new server and restored with:
For this and similar use cases, would
Would greatly appreciate clarifications on when 1 or 0 will be set for this field.
PkgAcct::Create
and PkgAcct::Restore
events to aid in user transfer from one server to another for reactivation. We noticed that the hook gets invoked many times with is_backup=0
and is_backup=1
. Based on our observations, is_backup=0
is what our integration needs to use to detect the transfer of account event. However, we weren't sure based on reading the API docs that is_backup=0
indicates the "account transfer" use case.Account transfers currently user pkgacct script as follows:
Code:
$cpscripts/pkgacct --skiphomedir username /root/cpanel_backups/
Code:
$cpscripts/restorepkg --allow_reseller cpmove-username.tar.gz
is_backup=0
be the case all the time? And is is_backup=1
set if --userbackup
or --backup=FILEPATH
as described over here: The pkgacct Script | cPanel & WHM DocumentationWould greatly appreciate clarifications on when 1 or 0 will be set for this field.
Last edited by a moderator: