We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ab5d98 commit 53b5a65Copy full SHA for 53b5a65
1 file changed
aws/setup/ec2_viewer/sync.sh
@@ -1,11 +1,11 @@
1
#!/bin/bash
2
3
-SYNC_COMMAND="aws s3 sync s3://codeclash/logs/ $HOME/CodeClash/logs/ --exclude \"*/rounds/*\" --exclude \"*.tar.gz\" --delete"
+SYNC_COMMAND="nice -n 19 aws s3 sync s3://codeclash/logs/ $HOME/CodeClash/logs/ --exclude \"**/rounds/**\" --exclude \"**/*.tar.gz\" --delete"
4
LOG_FILE="$HOME/sync.log"
5
6
while true; do
7
echo "$(date): Starting sync..." >> "$LOG_FILE"
8
eval $SYNC_COMMAND >> "$LOG_FILE" 2>&1
9
echo "$(date): Sync completed" >> "$LOG_FILE"
10
- sleep 60
+ sleep 300
11
done
0 commit comments