Skip to content

Commit 53b5a65

Browse files
committed
Enh(viewer): Sync less often
1 parent 8ab5d98 commit 53b5a65

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

aws/setup/ec2_viewer/sync.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/bash
22

3-
SYNC_COMMAND="aws s3 sync s3://codeclash/logs/ $HOME/CodeClash/logs/ --exclude \"*/rounds/*\" --exclude \"*.tar.gz\" --delete"
3+
SYNC_COMMAND="nice -n 19 aws s3 sync s3://codeclash/logs/ $HOME/CodeClash/logs/ --exclude \"**/rounds/**\" --exclude \"**/*.tar.gz\" --delete"
44
LOG_FILE="$HOME/sync.log"
55

66
while true; do
77
echo "$(date): Starting sync..." >> "$LOG_FILE"
88
eval $SYNC_COMMAND >> "$LOG_FILE" 2>&1
99
echo "$(date): Sync completed" >> "$LOG_FILE"
10-
sleep 60
10+
sleep 300
1111
done

0 commit comments

Comments
 (0)