Skip to content

alexandrelemos/ftp-sync-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

syncftp — minimal README

A minimal FTP sync script used for quick static site deployments and single-file fixes.

Core features

  • Full sync (uploads local files, removes remote orphans)
  • upload-file (upload a single file; does not remove orphans)
  • download (download configured files)
  • Simple VS Code task integration (optional)

Quick commands

cp .env.example .env
edit .env
python3 syncftp.py upload    # full sync
python3 syncftp.py sync      # alias for upload
python3 syncftp.py download
python3 syncftp.py upload-file <relative_path> [--strip-prefix <prefix>]

Notes

  • upload-file is intended for fast fixes; run sync afterwards to ensure consistency.
  • .env contains credentials; do not commit real secrets.

Recent

  • 2026-04-07: Added upload-file command for selective uploads (see changelog summary below).

Changelog (summary)

  • upload-file command: upload a single file, validates existence, creates remote directories, does not remove orphans.

Author

© Al 2026 with {curiosity} & *content is fictitious and for educational use only.

About

FTP Sync Script to sync local files to InfinityFree hosting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages