web2 [Linux] 데이터베이스 및 웹소스 백업 스크립트 예제 #!/bin/sh dir=/home/ACC/backup time=`date +%Y%m%d%H` mysqldump -h10.10.76.13 -uroot -pezyload2608 ACC > $time"_ACC.sql" tar czf $dir"/"$time"_db_ACC.tar.gz" $time"_ACC.sql" rm -rf $time"_ACC.sql" #!/bin/sh dir=/home/ACC/backup time=`date +%Y%m%d%H` cd /home/ACC/www/ACC/ tar czf $dir"/"$time"_src_ACC.tar.gz" * 2011. 7. 9. Cache 사용하지 않기 중요 정보를 표시하는 화면의 경우 로그 아웃 후, 혹은 history back으로 다시 보기가 불가능해야한다. cache를 사용하지 않기 위한 설정은 아래와 같다. html servlet response.setHeader("Cache-Control", "no-chache"); response.setHeader("Expires", "Sat, 01 Jan 1970 22:00:00 GMT"); response.setHeader("Pragma", "no-cache"); php header("Cache-Control:no-cache"); header("Expires:0"); header("Pragmano-cache"); asp Response.AddHeader "Cache-Control", "no-cache" R.. 2010. 11. 18. 이전 1 다음