A simple app to sync files between two devices.
Install the following python libraries:
- watchdog
- pyftpdlib
You can also use pip install -r requirements.txt
to install all the requirements.
Defult value:
files:
- "test.txt"
server_ip: 127.0.0.1
server_port: 21
user_name: "admin"
password: "123456"
files
: The file need to be synchronized.server_ip
: Server IPuser_name
: Username of the FTP Serverpassword
: Password of the FTP Server
Put client.py
and client.yml
in a folder, run client.py
.
Defult value:
user_name: "admin"
password: "123456"
port: 21
storage_path: "./files"
user_name
: Username of the FTP Serverpassword
: Password of the FTP Serverport
: The port of the FTP Serverstorage_path
: The path for the storage
put server.py
and server.yml
in a folder, run server.py
,make sure the port is not occupied.