ftp_syncer keeps your local directory synced with remote directory via FTP. Based on watchdog, a Python library to monitor filesystem events, ftp_syncer maps the resulting events such as on_created {directory} with FTP.mkd() {directory}.
At times many shared hosting services (like HostGator, BlueHost) doesn't allow ssh into shared hosting instances. In that case, only options left are either FileZilla or other FTP specific code deployment tools.
ftp_syncer leverages the existing FTP capabilities and doesn't require you to manually deploy your codebase whenever there's a change in it. Just keep writing or deleting the code and see the resulting changes on server.
You should never use it in production environment. ftp_syncer should only be used within dev environment and that too with great caution.
- Install watchdog and ftplib modules.
- Save your FTP credentials in config.yaml
python ftp_syncer.py -c config.yml -s YOUR_SERVER_DIR -l YOUR_LOCAL_DIR
Execute with --help parameter to get help on all available options.
python ftp_syncer.py --help
This software is distributed under the terms of the MIT license.
Contact me at @_jehanzaib_ or [email protected] for any feedback/suggestions.