1.1.0 • Published 5 months ago

nanoweb-sync-ftp v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

nanoweb-sync-ftp

Nanoweb Sync FTP is a command-line tool for synchronizing files between a local directory and an FTP server. It supports different sync strategies and parallel uploads for efficiency.

Features

  • Synchronizes local files to an FTP server.
  • Supports multiple sync strategies: sync, merge, force.
  • Handles parallel uploads for improved performance.
  • Supports secure FTP connections.

Installation

npm install -g nanoweb-sync-ftp

Usage

Sync Files

nanoweb-sync-ftp -host ftp.example.com -user username -pass password -local ./dist -remote /

Options

OptionDescriptionDefault
-hostFTP server host-
-userFTP username-
-passFTP password-
-portFTP port21
-secureUse secure FTP connectionfalse
-acceptUnauthorizedAccept unauthorized certificates (TLS)false
-parallelNumber of parallel uploads1
-strategySync strategy (sync, merge, force)sync
-localLocal directory to uploaddist
-remoteRemote FTP directory/
-recentCache file for faster synchronization.nanoweb-sync.json
-publicPublic directory to merge before upload-

Environment Variables

Alternatively, you can define settings in a .env file:

FTP_HOST=ftp.example.com
FTP_USER=username
FTP_PASS=password
FTP_PORT=21
FTP_SECURE=false
FTP_PARALLEL_UPLOADS=1
FTP_ACCEPT_UNAUTHORIZED=true
SYNC_STRATEGY=sync
SYNC_LOCAL=dist
SYNC_REMOTE=/
SYNC_PUBLIC=public
SYNC_CACHE=.nanoweb-sync.json

License

ISC License

Contributing

See CONTRIBUTING.md for details on how to contribute.

1.1.0

5 months ago

1.0.0

5 months ago