initial commit of already existing scripts

This commit is contained in:
2015-06-12 11:42:25 +03:00
commit 92bf42faec
7 changed files with 1017 additions and 0 deletions

9
server/sync-public.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# echo "* * * * * root /root/scripts/sync-public.sh" > /etc/cron.d/sync-public
for ((i = 1; i <= 4; i++)); do # Execute 4 times in a row
# echo $(date) >> /var/share/cron.log
rsync -a --delete --exclude=".*" /var/share/teachers/public/ /var/share/public/
sleep 15 # Wait 15 seconds after completion
done