teldrive / rclone_copy_loop.sh
Suchan87's picture
Create rclone_copy_loop.sh
bea4921
raw
history blame contribute delete
349 Bytes
#!/bin/bash
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