initial commit of already existing scripts
This commit is contained in:
9
server/sync-public.sh
Executable file
9
server/sync-public.sh
Executable 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
|
||||
Reference in New Issue
Block a user