Sync two or more directories on same network
Install Python 3.x
Install pyftplib Module if you intend to run a server on that machine.
pip install pyftplib
Note: setup.py would suffice for most home networks. For other networking setups, please modify the server.json and client.json
- Run setup.py to setup the Server mode or to Setup the Client mode
- If Server is selected by entering '1' in command Line, Enter the absolute path ie If the path is built starting from the system root, it is called absolute.
- Select Read only Mode to be enable or disable ie Enter in command line 'y' for Read Only mode and Enter 'n' for it to be disabled
Read Only: In this case, read-only means that the file can be only opened or read (by client); you cannot delete, change, or rename any file that's been flagged read-only. - Make sure the Client is running on other devices.
- A list of available IP's would be shown
- Follow the instructions in Command Line Prompt
- Sharing ip would create a mesh topology, else star topology.
- To ONLY run Client Followed by the prompt to Enter Folder path to where you want to sync
python setup.py
>python setup.py
1) Server
2) Client
>> 2
Client is running
python main.py s
[I 2019-03-21 22:15:29] >>> starting FTP server on 0.0.0.0:9090, pid=22424 <<<
[I 2019-03-21 22:15:29] concurrency model: multi-thread
[I 2019-03-21 22:15:29] masquerade (NAT) address: None
[I 2019-03-21 22:15:29] passive ports: None
python main.py c
- Windows: Use task schedular
- Linux: Use crontab
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.