aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/backup-sims.sh
blob: 803596fb20c510b24a2c7b8d8924a074df11709e (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