Hello cPanel community,
I am experiencing problem using cPanel API enqueue_transfer_item function.
I have 2 cPanels servers, in server one there are 5 accounts, in server two no accounts.
I use API commands for transfer tool and all works fine moving the accounts from server one to server two.
My problem is when I try move second time for rsync/updates the accounts from server one into server two the force also overwrite option is not working it says that
Failed: User “animalsshop2” already exists on this system.
Account “animalsshop2”: User “animalsshop2” already exists on this system.
The API command I am using is:
whmapi1 enqueue_transfer_item transfer_session_id='devcpanelhostcopya20201224184116pWSt' module=AccountRemoteRoot user='animalsshop2' size=1 live_transfer='0' localuser='animalsshop2' overwrite_with_delete='1' --output=json
also I tried:
whmapi1 enqueue_transfer_item module=AccountRemoteRoot user="animalsshop2" transfer_session_id="devcpanelhostcopya20201224184116pWSt" size="1" force="1" live_transfer="0" localuser="animalsshop2" --output=json
Could you help me figure out I cPanel Transfer Tool doenst overwrite account?
I made test using Transfer Tool inside control panel and overwrite/overwrite with delete options works pretty, the problem is only using API commands, maybe command is not passing or cPanel is not recognizing or I am forgetting any variables?
I am experiencing problem using cPanel API enqueue_transfer_item function.
I have 2 cPanels servers, in server one there are 5 accounts, in server two no accounts.
I use API commands for transfer tool and all works fine moving the accounts from server one to server two.
My problem is when I try move second time for rsync/updates the accounts from server one into server two the force also overwrite option is not working it says that
Failed: User “animalsshop2” already exists on this system.
Account “animalsshop2”: User “animalsshop2” already exists on this system.
The API command I am using is:
whmapi1 enqueue_transfer_item transfer_session_id='devcpanelhostcopya20201224184116pWSt' module=AccountRemoteRoot user='animalsshop2' size=1 live_transfer='0' localuser='animalsshop2' overwrite_with_delete='1' --output=json
also I tried:
whmapi1 enqueue_transfer_item module=AccountRemoteRoot user="animalsshop2" transfer_session_id="devcpanelhostcopya20201224184116pWSt" size="1" force="1" live_transfer="0" localuser="animalsshop2" --output=json
Could you help me figure out I cPanel Transfer Tool doenst overwrite account?
I made test using Transfer Tool inside control panel and overwrite/overwrite with delete options works pretty, the problem is only using API commands, maybe command is not passing or cPanel is not recognizing or I am forgetting any variables?
Attachments
-
418.1 KB Views: 3