Copy a folder between servers
transferCopy a folder from one of the user's servers to another, directly between them, for migrations (rsync over SSH with a temporary key that only allows reading that folder; nothing goes through AskYourStack). Needs rsync on both servers and the source's SSH port reachable from the target. Runs on the target as a background job and returns a job_id: follow it with job_output on the target. Call it again with the same arguments for a quick catch-up copy of what changed (the link stays open 24 hours), and call transfer_close when the migration is done. mirror also deletes files in the target folder that are not on the source (needs approval). Use excludes for caches, like var/cache, var/page_cache, generated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target server name or id. | |
| why | No | One plain sentence for the user, shown on the approval page if this call needs their approval: what it does and why it is needed. | |
| from | Yes | Source server name or id. | |
| path | Yes | Folder on the source, like /var/www/shop. | |
| mirror | No | Delete files on the target that are not on the source. Default false. | |
| excludes | No | rsync exclude patterns, relative to the folder. | |
| dest_path | No | Folder on the target. Default: the same path. | |
| approval_id | No | Only when repeating a call the user approved. |