CSync

Description

Task to process csync.

CSync task parameters

Attribute Description Value Required
local the local directory yes
remote the remote directory or url sftp://user:secret@myserver/home/user yes

Examples


<project name="csync task"> 

  <taskdef name="csync" 
     classname="net.sourceforge.ant4x.taskdefs.CSyncTask" 
     classpath="PATH/TO/ant4x.jar"/> 

  <target name="csync"> 
    <csync local="/path/to/local/dir" remote="/path/to/remote/dir" />
    <csync local="/path/to/local/dir" remote="sftp://user:secret@myserver/home/user" />
    <csync local="/path/to/local/dir" remote="sftp://myserver/home/user">
      <auth user="user" password="secret" />
    </csync>
  </target> 

                    </project>