Johnshope Sync is a simple but fast command line tool to sync ftp and local file folders.
Johnshope is OpenSource and is licensed under the MIT license. Sync uses Starksoft FTP Library which is also licensed under the MIT license.
Usage: sync35 sourceurl desturl [/update | /clone | /add] [logfilename] [/v | /q]
• Urls can be either ftp urls or local paths.
• Ftp urls are of the form protocol://username:password@server:port/path?ftp-options
• Protocol can be either ftp or ftps
• Ftp-options are delimited by a & and are of the form parameter or parameter=value
• Available ftp-options are passive (passive ftp mode), active (active ftp mode), connections (number of concurrent connections), zip for compression if the server supports it, and raw for no compression.
• Connections option reqires an int value that limits the maximum concurrent connections.
• Default ftp-options are active&zip&connections=10
• The /update option tells sync to keep newer files in the destination.
• The /clone option tells sync to clone the source and discard all changes in the destination. This is the default.
• The /add option tells sync to add all files that are not present or outdated in the destination, but not to delete any files or overwrite newer files.
• You can redirect output to a logfile by specifying a logfile name.
• You can set output to verbose mode with the /v switch or to quiet mode with the /q switch.
You can download sync and also get the sourcecode at ftpsync.codeplex.com.
There are two executables sync35.exe and sync4.exe in your installation’s path. sync35.exe runs under .NET Framework 3.5 (Preinstalled on Windows 7 and Server 2008 R2) and sync4.exe under .NET Framework 4 (Preinstalled on Windows 8).