LEP: 11
LEP-Scope: lunant
Title: 서비스 애플리케이션 배포 표준
Author: Hong MinHee [email protected]
Status: Active
Content-Type: text/x-markdown; charset=utf-8
Content-Language: ko-kr
Created: 04-Aug-2010
서비스 애플리케이션 배포 표준
LEP: 11
LEP-Scope: lunant
Title: 서비스 애플리케이션 배포 표준
Author: Hong MinHee [email protected]
Status: Active
Content-Type: text/x-markdown; charset=utf-8
Content-Language: ko-kr
Created: 04-Aug-2010
서비스 애플리케이션 배포 표준
| #!/bin/bash | |
| VENV=$1 | |
| if [ -z $VENV ]; then | |
| echo "usage: runinenv [virtualenv_path] CMDS" | |
| exit 1 | |
| fi | |
| . ${VENV}/bin/activate | |
| shift 1 | |
| echo "Executing $@ in ${VENV}" | |
| exec "$@" |
| #!/bin/bash | |
| date=`date "+%Y-%m-%dT%H_%M_%S"` | |
| HOME=/YOUR/LOCALHOME | |
| SERVER=ID@HOST | |
| DIR=backup | |
| rsync -azP \ | |
| --bwlimit=500 \ | |
| --delete \ | |
| --delete-excluded \ |