GithubHelp home page GithubHelp logo

ftpfilesync's Introduction

Ftpfilesync基于ftp协议的文件同步程序

基于github.com/jlaffaye/ftp组件,使用go语言编写

配置指南

配置文件名为config.json,需放置到可执行文件相同的路径。

{
  "Debug": true,
  "Host": "192.168.100.110",
  "Port": "21",
  "User": "test",
  "Passwd": "test",
  "Transfers":[
    {
      "FtpDir": "send/",
      "LocalDir": "/Users/fanzhi/Documents/temp/send/",
      "IsPut": true
    },
    {
      "FtpDir": "receive/",
      "LocalDir": "/Users/fanzhi/Documents/temp/receive/",
      "IsPut": false
    }
  ],
  "DeleteSource": true,
  "Sleep": 100,
  "Filefilters": [".dat",".abc"]
}
  • Debug bool是否为debug模式
  • Host ftp服务器账号
  • Port ftp服务器的端口
  • User ftp服务器的用户名
  • Passwd ftp服务器的密码
  • Transfers 传输配置
    • FtpDir ftp服务器的文件相对路径
    • LocalDir 本地文件夹路径
    • IsPut 是上传还是下载,true即上传
  • DeleteSource 是否删除源
  • Sleep 休眠时间,毫秒
  • Filefilters 后缀名过滤

ftpfilesync's People

Contributors

fanzhi1977 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.