source_path="/app/teldrive.db" | |
destination_path="anime2:teldrive/" | |
# Define the interval in seconds (e.g., 3600 seconds for 1 hour) | |
interval=1800 | |
while true; do | |
# Run the rclone copy command | |
rclone copy --config /app/rclone.conf "$source_path" "$destination_path" | |
# Sleep for the defined interval | |
sleep $interval | |
done |