IP통합관리 스키마

사용자 삽입 이미지
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 노는총각

2008/02/26 13:59 2008/02/26 13:59
Response
No Trackback , No Comment
RSS :
http://blog.zeroidle.com/rss/response/88

Trackback URL : http://blog.zeroidle.com/trackback/88

Leave a comment
[로그인][오픈아이디란?]

mysql prompt 변경

Option Description
\v The server version
\d The default database
\h The server host
\p The current TCP/IP port or socket file
\u Your username
\U Your full user_name@host_name account name
\\ A literal “\” backslash character
\n A newline character
\t A tab character
\  A space (a space follows the backslash)
\_ A space
\R The current time, in 24-hour military time (0-23)
\r The current time, standard 12-hour time (1-12)
\m Minutes of the current time
\y The current year, two digits
\Y The current year, four digits
\D The full current date
\s Seconds of the current time
\w The current day of the week in three-letter format (Mon, Tue, …)
\P am/pm
\o The current month in numeric format
\O The current month in three-letter format (Jan, Feb, …)
\c A counter that increments for each statement you issue
\l The current delimiter. (New in 5.0.25)
\S Semicolon
\' Single quote
\" Double quote
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 노는총각

2008/02/22 11:23 2008/02/22 11:23
Response
No Trackback , a comment
RSS :
http://blog.zeroidle.com/rss/response/86

Trackback URL : http://blog.zeroidle.com/trackback/86

Comments List

  1. 노는총각 2008/02/22 11:30 # M/D Reply Permalink

    색은 못바꾸나보다

Leave a comment
[로그인][오픈아이디란?]

MySQL 백업

PXE Boot에 NFS돌리느라.. 쪼맨한 서버 용량도 모자라 백업안하고 있었는데
이런일이 일어나다니.. ㅠ.ㅠ

이젠 내 서버도 30분마다 백업이닷!

#!/bin/sh
backupDir="/opt/backupMysql";

dateTime=$(/bin/date +%Y-%m-%d_%H.%M.%S)

if [ ! -e $backupDir/$dateTime ]; then
    echo "Backup Directory NOT EXIST!! ($backupDir)";
    /bin/mkdir $backupDir/$dateTime
    /bin/chmod 700 $backupDir/$dateTime
    echo "mkdir $backupDir/$dateTime";
    echo "chmod 700 $backupDir/$dateTime";
fi

/usr/bin/mysqlhotcopy zeroidle $backupDir/$dateTime/

dateEndTime=$(/bin/date +%Y-%m-%d_%H.%M.%S)

echo "$dateTime ~ $dateEndTime Done.";

/usr/bin/find $backupDir -maxdepth 1 -type d -ctime +5 -ls -exec rm -rf {} \;

// Kernel 2.4는  -ctime말고 -mtime

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 노는총각

2008/01/08 16:33 2008/01/08 16:33
Response
No Trackback , No Comment
RSS :
http://blog.zeroidle.com/rss/response/3

Trackback URL : http://blog.zeroidle.com/trackback/3

Leave a comment
[로그인][오픈아이디란?]

블로그 이미지

버그가 없어도 전혀 기쁘지 않아!!!

- 노는총각

Notices

Archives

Calendar

«   2010/03   »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Site Stats

Total hits:
50787
Today:
44
Yesterday:
115