Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Phing task to copy files to and from a remote host using sftp

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 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
Something went wrong with that request. Please try again.