This project implements a file synchronization service that utilizes Zeroconf (also known as Bonjour or Avahi) for automatic discovery of devices on a local network. The service allows devices within the same network to synchronize files between them without the need for manual configuration.
- Automatic discovery of devices on the local network using Zeroconf.
- Synchronization of files between discovered devices.
- Simple setup and usage.
- Python 3.x
- Zeroconf library (
zeroconf
orpython-zeroconf
) rsync
installed on devices for file synchronization
-
Clone the repository:
git clone https://github.com/yourusername/file-sync-service.git
-
Install the required Python dependencies:
pip install zeroconf
-
Ensure that
rsync
is installed on all devices that will participate in file synchronization.
-
Start the file sync service on each device:
python file_sync_service.py
-
The service will automatically register itself using Zeroconf and start synchronizing files with other discovered devices.
-
Press Enter to exit the service.
- By default, the service syncs files from the current directory. You can change the directory to sync by modifying the
directory_to_sync
variable in the script.
Contributions are welcome! If you have any ideas for improvements or new features, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.