SOLVED How to transfer tool via whmapi1 but to disable Live Transfer

Inna

Active Member
Mar 10, 2018
41
6
58
Iran
cPanel Access Level
Root Administrator
Hello,

As per in these docs: Transfer Tool | cPanel & WHM Documentation and Guide to Transfer and Restore API Functions - Create the Transfer Session and Create remote server transfer session, I see I can create remote transfer session, but these are my questions or issues that I didn't find in the docs:

1. How to let WHM use my ssh keys to create session? I added the keys, and `ssh -p2222 root@dest` logs in find.
2. How to inform WHM which users I want to transfer from `dest` to `local`? I want to transfer user `userA` from `dest` to `local`.
3. How to disable the Live Transfer to that the IP and nameservers in the DNS Zone file won't change?
4. How to inform WHM to overwrite the existing account? I mean I want to overwrite whenever I run the `whmapi` with no prompt.

Thanks
in advance
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,570
2,612
363
cPanel Access Level
Root Administrator
Hey there!

1 - There are details about using an SSH key on this page: Create remote server transfer session as root user
2 - Details on setting up the transfer are here: Guide to Transfer and Restore API Functions - Queue the Transfer Item
3 - Disabling the transfer can be found here: Guide to Transfer and Restore API Functions - Plan the Transfer Session
4 - This would be the "force" flag from the same option in the link in #2

I will say, the Transfer APIs do require a lot of initial setup, and aren't always intuitive. You'll need to use each step from the attached image in order to successfully perform a transfer:

Screenshot 2023-08-29 at 10-48-47 Guide to Transfer and Restore API Functions - Queue the Tran...png
 
  • Like
Reactions: Inna