Clarification regarding is_backup field in PkgAcct::Create event
Our integration is hooking into
and
events to aid in user transfer from one server to another for reactivation. We noticed that the hook gets invoked many times with
and
. Based on our observations,
is what our integration needs to use to detect the transfer of account event. However, we weren't sure based on reading the $cpscripts/pkgacct --skiphomedir username /root/cpanel_backups/
and subsequently the cpmove archive is copied over to the new server and restored with:
For this and similar use cases, would
be the case all the time? And is
set if
or
as described over here:
PkgAcct::Createand
PkgAcct::Restoreevents to aid in user transfer from one server to another for reactivation. We noticed that the hook gets invoked many times with
is_backup=0and
is_backup=1. Based on our observations,
is_backup=0is what our integration needs to use to detect the transfer of account event. However, we weren't sure based on reading the $cpscripts/pkgacct --skiphomedir username /root/cpanel_backups/
and subsequently the cpmove archive is copied over to the new server and restored with:
$cpscripts/restorepkg --allow_reseller cpmove-username.tar.gzFor this and similar use cases, would
is_backup=0be the case all the time? And is
is_backup=1set if
--userbackupor
--backup=FILEPATHas described over here:
-
Hey there! I'm looking into this and I'll let you know once I have an update. 0 -
I just wanted to let you know our team is still looking into this and I'll post an update once I get more details. 0 -
I did some testing with the backup team and you are correct - the =0 value is the one that will normally be used. =1 would be used if either backup or userbackup is true/has a value. 0 -
I did some testing with the backup team and you are correct - the =0 value is the one that will normally be used. =1 would be used if either backup or userbackup is true/has a value.
Thanks a lot! Greatly appreciate the quick responses on the questions asked over here from you and the rest of the team0 -
You're very welcome! 0
Please sign in to leave a comment.
Comments
5 comments