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

source common.sh
getPrgDir

for i in $(seq 99)
do
    j=$(num2name ${i})
    if [ -e "${PRGDIR}/../config/${j}" ]
    then
	cd ${PRGDIR}/../config/$j
	./backup-sim
	# Sleep for a while, 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 200
    fi
done