com4people

Sunday, August 29, 2010

Migration 방법

1. source tar backup tar -cvzf xxx.tgz object directory


2. ftp move and tar -xvzf xxx.tgz

3. database move
xxx.sql => new machine (/usr/local/pgsql/data/)로 ftp,로 moving
4. database restore
1) create database
2) su - postgres
3) pgsql dbname
4) i xxx.sql
==> table create and data move
5. register the domain into new name sever and apache register
/usr/local/httpd/conf => 신규 box에서 새로운 domain관련 사이트 등록
name server에 추가 /etc/named.conf 와 /var/named/의 아래 directory에서 신규 domain등록

0 Comments:

Post a Comment

<< Home