This repository contains configuration and setup scripts used for automatic file transfer between Base Raspberry Pi and Drone Raspberry Pi using rsync and systemd service.
The purpose of this setup is to:
- Automatically pull files from Base Station
- Enable continuous synchronization
- Ensure service starts automatically on boot
- Provide reliable data transfer for drone operations
Systemd service file responsible for:
- Running rsync transfer
- Pulling files from base station
- Running automatically at startup
This script installs and enables the rsync pull service.
Run the following commands on Drone Raspberry Pi:
sudo mv ~/Downloads/DroneBaseTransfer/rsync-pull.service /etc/systemd/system/rsync-pull.service
sudo systemctl daemon-reexec
sudo systemctl daemon-reload
sudo systemctl enable rsync-pull.service
sudo systemctl start rsync-pull.servicesudo mv ~/Downloads/DroneBaseTransfer/rsync-pull.service /etc/systemd/system/rsync-pull.serviceMoves the service file to systemd directory so Linux can recognize it.
sudo systemctl daemon-reexec
sudo systemctl daemon-reloadThese commands:
- Reload systemd configuration
- Register new service
sudo systemctl enable rsync-pull.serviceThis ensures:
- Service starts automatically on boot
sudo systemctl start rsync-pull.serviceStarts the rsync pull service immediately.
To check if service is running:
sudo systemctl status rsync-pull.servicesudo systemctl stop rsync-pull.servicesudo systemctl disable rsync-pull.serviceThis setup is used in:
- GPS denied drone system
- Base to drone communication
- Automatic file sync
- Autonomous drone operations
- Raspberry Pi 4 / Raspberry Pi 5
- Linux OS (Ubuntu / Raspberry Pi OS)
- rsync installed
- SSH enabled
Install rsync if not available:
sudo apt update
sudo apt install rsync -yBase Station → Drone Pi (files pushed / pulled automatically)
- Ensure SSH access between Base and Drone
- Ensure IP address is configured correctly
- Make sure service file paths are correct
- Add retry mechanism
- Add logging
- Add watchdog monitoring
- Add health check
MIT License