Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Syncing CLI Tool

Sync the files between a source and target file sources. Scans both file sources to find all included files and compares the results to decide what actions must be taken to sync the target file source.

Usage

./ftp-sync [-t|--test] [--preserve-target] <CONFIG-PATH>

Args

  • --preserve-target
    • do not delete files from the target that are not present in the source
  • -t, --test
    • do not perform any actual syncing actions, just print the plan to STDOUT

Config Structure

{
  "target": <FILE_SOURCE_DEFINITION>,
  "source": <FILE_SOURCE_DEFINITION>
}
// FILE_SOURCE_DEFINITION
{
  "type": "sftp" | "filesystem", // required
  "root_directory": Path, // required
  "excluded": string[], // optional
  // sftp only
  "ip": string, // required
  "port": u16, // default, 22
  "username": string, // required
  "password": string // optional, will be prompted if not present
}

About

File Sync CLI Tool using Rust

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages