Suchan87 commited on
Commit
bea4921
·
1 Parent(s): 330a8e4

Create rclone_copy_loop.sh

Browse files
Files changed (1) hide show
  1. rclone_copy_loop.sh +15 -0
rclone_copy_loop.sh ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ source_path="/app/teldrive.db"
4
+ destination_path="anime2:teldrive/"
5
+
6
+ # Define the interval in seconds (e.g., 3600 seconds for 1 hour)
7
+ interval=1800
8
+
9
+ while true; do
10
+ # Run the rclone copy command
11
+ rclone copy --config /app/rclone.conf "$source_path" "$destination_path"
12
+
13
+ # Sleep for the defined interval
14
+ sleep $interval
15
+ done