aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/backup-sims.sh
blob: 775ebbe7b9c4bb7b2b15d6d7ca6b0cf141637749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

OSPATH="/opt/opensim"

for i in $(seq 99)
do
    j=$(printf "sim%02d" $i)
    if [ -e "$OSPATH/config/$j" ]
    then
	cd $OSPATH/config/$j
	./backup-sim
	# sleep for three minutes, so that there is plenty of time to do the backup, 
	# and we are not keeping the computer very busy if there are lots of sims.
	sleep(180)
    fi
done