[출처] http://seobangnim.com/zbxe/?document_srl=209841

리눅스 날짜별 백업파일 생성 및 복사 스크립트
- 백업 스크립트 backup.sh 파일을 아래 내용으로 생성
#!/bin/sh
timesys=`date +%Y%m%d`
tar cvfz '/backup/'.$timesys'.tar.gz' /mysql/[db폴더]
/usr/bin/ftp -n [ip주소] < /backup/ftpscript
rm -rf /backup/*
- FTP로 백업하기 위한 ftpscript 파일 생성
#!/bin/sh
user [계정] [비번]
cd /backup
lcd /backup
bin
prompt
hash
mput *
bye
- 백업 스크립트 backup.sh 파일을 crontab에 등록


'사진' 카테고리의 다른 글

2011-05-13 점심 산책  (0) 2011.05.13
2011-05-11 점심 산책  (0) 2011.05.11
2011-05-06 점심 산책  (0) 2011.05.06
2011-05-03 점심 산책  (0) 2011.05.03
점심산책 2011-04-27  (0) 2011.04.27
출처는... 잘 모르겠음..

해라체 plane formal style
하게체 familiar formal style
해체 plane informal style
하오체 authoritative formal style
합쇼체 polite formal style
해요체 polite informal style

평서문 declarative sentence
의문문 interrogative sentence
명령문 imperative sentence
감탄문 exclamatory sentence
청유문 propositive sentence

어미 ending
어말어미 final ending
선어말어미 prefinal ending

양성모음 bright vowel 
음성모음 dark vowel

모음조화 vowel harmony
모음축약 vowel contraction
모음탈락 vowel omission

태              voice ; 사동, 피동
서상            aspect ; 시발, 계속, 중지, 종료, 반복 등
시제            tense ; 과거, 현재, 미래 등
법성            modality (mood) 
서법            mood
                직설법       indicative mood
                가정법       subjunctive mood
                원망법       optative mood
                명령법       imperative mood
겸칭
서법

accusative (대격) (used to mark direct objects; Latin, Finnish)
active intransitive verb (동작 자동사)
active transitive verb (동작 타동사)
active verb (동작 동사)
adnomial ending (관형형 어미)
adnomial particle (관형조사)
adnominal (관형사)
adverb (부사어)
adverbial (부사)
adverbial particle (부사격 조사)
agent (행위자)
attributive-determinative words (관형어)
auxiliary particle (보조사)
auxiliary verb (조동사)
basic structure (기본 구조)
bound noun (의존 명사)
cardinal number (기수사)
case (격)
- 통사론적 격 (주격, 목적격, 관형격, 부사격 등)
- 형태론적 격 (nominative, genitive, dative, accusative 등)
- 의미론적 격 (agent, experiencer, instrument, objective, locative, goal 등)
case particle(격조사)
causative (사동)
causative suffix (사동 접미사)
causative verb (사동사)
cause (원인)
class of adverbials (부사의 종류)
class of nouns (명사의 종류)
class of verbs (동사의 종류)
clause (절)
coordinate clause (대등절)
subordinate clause (종속절)
adverbial clause (부사절)
main clause (주절)
comitative (공동성, 공격 `와')
comparative (비교격)
compound noun (합성 명사)
compounded verb (합성 동사)
concession (양보)
condition (조건)
conjugation (어미 활용)
conjugation of verbs (동사의 활용)
conjugative ending of verbs (동사의 활용어미)
conjuncts (접속절)
conjunction (접속사)
coordinate conjunction (등위 접속문) : 선행절과 후행절이
통사적으로는 물론이고 의미적으로도 대등한 관계를 맺음으로써
대칭성을 띤다.
subordinate conjunction (종속 접속문) : 통사적으로는 접속절끼리
대등한 관계에 있지만, 의미적으로는 선행절이 후행절에 대한
수식적 기능을 가짐으로 해서 접속절들 사이에 비대칭성이 작용한다.
phrasal conjunction (구 접속)
conjunction reduction (접속문 줄이기)
conjunctive ending (연결어미)
conjunctive particle (접속 조사)
conjunctive structure (접속 구조)
conjunctor (접속사, 접속소)
contraction (축약)
contrastive (대조)
coocurrence (호응)
dative (여격)(used to mark indirect objects; Latin)
declarative (서술)
deletion (탈락)
demonstrative pronoun (지시대명사)
dependent noun (의존 명사)
descriptive verb (형용 동사)
direct narrative (직접 화법)
diversion (역접)
enumeration (나열)
experiencer (경험자)
following vowel (후행 모음)
formal speech level (높임의 격식체)
gender (성)
genitive (속격)
goal (달격??)
grammatical function (문법적 기능)
grammatical relation (문법적 관계)
high form (존대형 높임)
homophones : words that sound alike but are spelled differently
honorific form (존대법)
honorific suffix (존칭 접미사)
imperative (명령)
independent noun (완전 명사)
indirective narrative (간접 화법)
informal speech level (높임의 비격식체)
instrument (도구)
instrumental (조격)
intent (의도)
interrogative (의문)
interrogative pronoun (의문대명사)
interruption (전환)
intransitive verb (자동사)
irregular verb (불규칙 동사)
locative (처격)
long-form (장형)
long-form negativee (장형 부정)
long-form passive (장형 피동)
low form (하대형 높임)
main subject (전체의 주어)
modified structure (수식 구조)
movement of action (동작의 이동)
narrative (화법)
negative (부정)
negative form (부정형)
neutral form (중립형 높임)
nominal ending (명사형 어미)
nominative 명(사)격??
nominative particle (주격 조사)
noun (명사)
noun-class words (명사류어)
number (수사)
object (목적어)
objective particle (목적격 조사)
ordinal number (서수사)
particle (조사)
passive (피동)
passive suffix (피동 접미사)
personal pronoun (인칭 대명사)
postposition (조사)
phrase (구)
position of adverbials (부사의 위치)
possessive (소유격)
preceding vowel (선행 모음)
predicative noun (서술 명사)
presentation of situation (상황 제시)
pronoun (대명사)
propositive (청유)
reason (이유)
selection (선택)
sentence construction type (문장 구성 유형)
sentence structure (문장의 구조)
short-form (단형)
short-form negative (단형 부정)
short-form passive (단형 피동)
special usage of nouns (명사의 특별한 쓰임)
speech level (상대 높임)
subject (주어)
subject of predicate clause (서술절의 주어)
suffix after noun (명사 뒤에 나타나는 접미사)
tense (시제)
terminative ending (종결어미)
topic (화제)
transitive verb (타동사)
utterance situation (발화상황)
verb (동사)
vowel harmony (모음조화)
word order (문장의 어순)
 
서버를 계속 살리지 못하고 있는 상황에서 가장 곤란한점은 작업한 내용의 공유가 힘들어졌다는 것이다. 무엇보다도 CVS로 가지고 있던 것을 옮겨야 겠는데 기왕 옮기는 김에 SVN으로 옮기면 어떨까 한다. 

찾아보니 외국 사이트에 관련된 내용이 있어 우선 스크랩...

[출처] http://sam.zoy.org/writings/programming/svn2cvs.html

HOWTO: smooth CVS to SVN migration (and back again)

This page explains how I migrated the VideoLAN CVS repositories to Subversion while still allowing anonymous CVS access for users who did not want to move to Subversion. If you are a CVS user and have not yet fallen in love with Subversion, I suggest you have a look at this excellent project. In fact, I recommend to be familiar with Subversion before reading this document, because I may have missed important things.

The idea is to migrate the CVS repository to a Subversion repository using cvs2svn, disable CVS accounts (except read-only accounts such as anonymous) and set up post-commit hooks to replicate SVN commits back to the CVS repository.

First step: cvs2svn

Here are the preparatory steps to migrate a CVS module wooyay from the CVS root /cvs/stuff to a new SVN repository/svn/wooyay:

svnadmin create /svn/wooyay
cvs2svn -s /svn/wooyay /cvs/stuff/wooyay
svn ls file:///svn/wooyay
branches/
tags/
trunk/
$

That’s all! Your SVN repository is created. The default layout is a bit special but quite handy: tags are in tags/, branches are inbranches/, and HEAD is trunk.

Don’t forget to backup your old CVS tree! It might be useful if something ever gets wrong.

Repository cleaning

Now that your repository is created, you can use Subversion’s magical powers to do whatever you want to the repository, such as removing and renaming branches or tags. These steps are not mandatory but you might find them convenient.

CVS branch names cannot start with a digit or contain periods, and you end up with branches called v1_2_3 instead of 1.2.3. And I don’t like that. Here is an example of what I would do:

svn ls file:///svn/wooyay/branches
test/
v1_0/
v2_0/
svn rm file:///svn/wooyay/branches/test -m "removed branch"
svn mv file:///svn/wooyay/branches/v1_0 file:///svn/wooyay/branches/1.0 -m "renamed branch"
svn mv file:///svn/wooyay/branches/v2_0 file:///svn/wooyay/branches/2.0 -m "renamed branch"
svn ls file:///svn/wooyay/branches
1.0/
2.0/
$

I also like to import .cvsignore files to Subversion properties and set the "Id" keyword properties for files containing the "$Id:" special string. If your repository is big, you might want to do this change only for trunk/ and the still active branches.

svn checkout file:///svn/wooyay/trunk workingdir
cd workingdir/
find -name .cvsignore | while read file; do
    svn propset svn:ignore "`cat "$file"`" "`echo "$file" | sed 's,/[^/]*$,,'`"
  done

find . -type f -a '(' -path '*/.*' -prune -o -print ')' | while read file; do
    if grep -q '\$Id:' "$file" && ! svn propget svn:keywords "$file" | grep -q '^Id$'; then svn propset svn:keywords Id "$file"; fi
  done

svn commit -m "imported svn:ignore and svn:keywords properties"
$

The post-commit hook

This is the important part. My svn_cvsinject script can be used to reinject SVN commits into the old CVS directory. Use option-r to specify the revision to reinject, and -a to do branch aliases. In our example, this would be the contents of the/svn/wooyay/hooks/post-commit file:

#!/bin/sh
REPOS="$1"
REV="$2"
svn_maillog "$REPOS" "$REV" "svn@localhost" "sam@localhost"
svn_cvsinject -r "$REV" "$REPOS" "/cvs/stuff/wooyay" \
    -a "1.0/v1_0" -a "2.0/v2_0" &
exit 0

It is advisable to run svn_cvsinject in the background because it can take a long time to finish. Also, make sure that all users with commit rights (including the user svnserve might run as) have write permissions on the CVS repository.

Here are the current svn_cvsinject features:

  • support for file creation and removal
  • support for directory creation and removal
  • support for simultaneous commits in different branches
  • support for branch aliases

However, it also has the following current limitations:

  • no support for new branches
  • no user mapping when run from svnserve (but the user is mentioned in the commit log)
  • concurrent calls may break things (use locks)
  • poor error handling

Conclusion

It works for me (tm), but I’d be happy to learn of other successful installations. And please tell me of failures as well, so that I can fix bugs!

If your CVS repository ever gets corrupted, you can reinject every SVN commit by restoring your backuped CVS tree and callingsvn_cvsinject again for every revision since you used cvs2svn. 


'사진' 카테고리의 다른 글

점심산책 2011-05-17  (0) 2011.05.17
2011-05-11 점심 산책  (0) 2011.05.11
2011-05-06 점심 산책  (0) 2011.05.06
2011-05-03 점심 산책  (0) 2011.05.03
점심산책 2011-04-27  (0) 2011.04.27
#!/usr/bin/perl -w
#
$a = "123(ad(f(d(z(a(e))))))456";
$b = "123(adfd)456";
$c = "123(ad)4(fd)56";

$NesteD = qr/ \(( [^()] | (??{ $NesteD }) )* \) /x ;
$a =~ s/$NesteD//gx;
$b =~ s/$NesteD//gx;
$c =~ s/$NesteD//gx;
print "$a\n$b\n$c\n";


'사진' 카테고리의 다른 글

점심산책 2011-05-17  (0) 2011.05.17
2011-05-13 점심 산책  (0) 2011.05.13
2011-05-06 점심 산책  (0) 2011.05.06
2011-05-03 점심 산책  (0) 2011.05.03
점심산책 2011-04-27  (0) 2011.04.27

+ Recent posts