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-fileis intended for fast fixes; runsyncafterwards to ensure consistency..envcontains credentials; do not commit real secrets.
Recent
- 2026-04-07: Added
upload-filecommand for selective uploads (see changelog summary below).
Changelog (summary)
upload-filecommand: 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.