]> git.evergreen-ils.org Git - contrib/pines/genasys.git/blob - templates/utility/run-collections.sh
add Apache mutex-file configuration
[contrib/pines/genasys.git] / templates / utility / run-collections.sh
1 #!/bin/bash
2
3 DATE=$(date +%Y-%m-%d);
4 DIR="collections-$DATE"
5 LIBS="BR-1 BR-2"
6 USRNAME="yourusername"
7 PASSWD="yourpassword"
8 REMOTE_HOST="user@example.com:incoming/"
9
10 cd ums;
11 mkdir $DIR
12
13 for lib in $LIBS; do
14     ./run-calls.pl /openils/conf/opensrf_core.xml $USRNAME $PASSWD $lib
15     mv data-$lib $DIR/
16 done;
17
18 tar cvf $DIR.tar $DIR
19 gzip $DIR.tar
20
21 echo "scping $DIR.tar.gz...";
22 scp $DIR.tar.gz $REMOTE_HOST
23