Changeset 9672
- Timestamp:
- Sep 6, 2011, 1:35:36 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/import_scan_data.sh
r9671 r9672 7 7 MAP_CACHE=${MAP_CACHE:-"/usr/local/var/httpd/cache/maps"} 8 8 MANAGE="`dirname $0`/manage.py" 9 SSH_USER=${SSH_USER:-$USER}10 9 SSH_KEY="`dirname $0`/id_rsa" 11 10 export PYTHON_EGG_CACHE=/tmp/ … … 26 25 echo "# rsync webfolder" 27 26 if [ -r "$SSH_KEY" ]; then 28 SSH_KEY_OPT='-i $SSH_KEY' 27 SSH_KEY_OPT="-i $SSH_KEY" 28 SSH_USER=backup 29 29 else 30 30 echo "# warning automatic ssh key $SSH_KEY not readable" 31 31 SSH_KEY_OPT='' 32 SSH_USER=${SSH_USER:-$SUDO_USER} 32 33 fi 33 rsync -az -e "ssh $SSH_KEY_OPT -l $SSH_USER -o StrictHostKeyChecking=no" tyan.wirelessleiden.nl:/usr/local/www/webfolder/scan-data/ $DATAROOT34 echo rsync -az -e "ssh $SSH_KEY_OPT -l $SSH_USER -o StrictHostKeyChecking=no" tyan.wirelessleiden.nl:/usr/local/www/webfolder/scan-data/ $DATAROOT 34 35 35 36
Note:
See TracChangeset
for help on using the changeset viewer.