Phing task to copy files to and from a remote host using sftp
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
SftpTask.php

README.md

About:

Phing task to copy files to and from a remote host using sftp. Based on scp task.

Usage:

 <taskdef name="sftp" classname="path.to.task.SftpTask" />

 <sftp username="john" password="secret" host="example.com" todir="/public_html" file="index.html" />

 <sftp username="john" password="secret" host="example.com" todir="/public_html/app">
    <fileset dir="template">
        <include name="*.html" />
    </fileset>
 </sftp>

Attributes

Name Type Description Default Required
host String Remote host none Yes
port Integer Remote port 22 No
username String Username to use for the connection none Yes
password String Password to use for the connection none No
autocreate Boolean Whether to autocreate remote directories true No
todir String Directory to put file(s) in none No
file String Filename to use none No
fetch Boolean Whether to fetch (instead of copy to) the file false No