This script is designed to monitor a specific folder and upload any new files to an FTP server at regular intervals.
It's particularly useful for mirroring new files from Chia DataLayer™ to a personal server.
To use this script, ensure you create a .env file with the necessary configurations.
FTP_HOST="ftp.example.com"
FTP_USER="ftpuser"
FTP_PASS="ftppassword"
LOCAL_FOLDER="/path/to/.chia/mainnet/data_layer/db/server_files_location_mainnet/"
REMOTE_FOLDER="/path/to/mirror/"
SLEEP_INTERVAL=600python3 -m venv venv
ln -s venv/bin/activate .
. ./activate
pip install -r requirements.txtpython3 file_check.py