/// BANGBOO BLOG ///

  • 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

August 18, 2010

Server transfer

xrea+からcore miniへ移行した

■サポートからのXrea+からCORESERVERへの移行手順
1)CORESERVERアカウント取得
CORESERVERアカウント未取得の場合はアカウントを取得してください。
https://www.value-domain.com/howto/?action=coresv_web&noheader=1

2)データ移動
移動先サーバー(CORESERVER)のサーバー間コピー機能をお使いいただき、移動元サーバー(XREA)の情報を移動してください。FTP接続でデータを転送されても問題ございません。

3)ドメインウェブ設定(ドメインをお持ちの場合)
移動先サーバー(CORESERVER)のドメインウェブ設定にドメイン情報を設定してください
※強制にチェックをつけ設定をお願いいたします。

4)DNS設定(ドメインをお持ちの場合)
ドメインのDNS設定画面を開いていただき、自動設定にて取得いただいたCORESERVERをお選びいただき、保存してください。

5)ドメインウェブ設定削除(ドメインをお持ちの場合)
移動元サーバー(XREA)のドメインウェブ設定を削除してください。
※DNSが切り替わり新しいサーバに名前解決するのに10分くらいだった、俺のネットでは

■手順(はじめは新旧のアカウント系データを全てメモる)
1)DBデータを新サーバへコピーする
2)FTPデータを新サーバへコピーする(htaccess認証かける)
3)Cronの設定をコピー
4)メールを新サーバへ設定
5)WEBプログラム内の設定(DBパスワード、メール設定、フルパス、htacces/pwdをテスト用に)
6)その他設定(DBバックアップ)を新サーバへ設定
7)テスト
8)元画面と新画面をメンテナンス中にする(全アクセスメンテ中ページに転送)
9)DB最新データを移行する
10)DNSを切り替える(旧サーバは同期強制転送の設定)
11)ドメインのメールの設定
12)WEBプログラム内の設定(DBパスワード、メール設定、フルパス、htacces/pwdを本番用に)
13)テスト(ライブ環境テスト中は認証を掛けた、IPでのアクセス制限がいい)
14)メンテ中を外す

■メンテナンス中 htaccess
192.168.0.4や192.168.0.5の部分には、管理者のIPアドレスを書きます。
Sun, 14 Jun 2009 06:00:00 GMTの部分には、メンテ終了予定時刻

RewriteEngine on
RewriteCond %{REMOTE_ADDR} !=121.2.33.235
RewriteRule ^503/ - [L]
RewriteRule ^.*$ 503/503.php

<IfModule mod_headers.c>
  Header set Retry-After "Wed, 18 Aug 2010 9:00:00 GMT"
</IfModule>

--503/503.php
<?php
header ('HTTP/1.0 503 Service Temporarily Unavailable');
include(dirname(__FILE__) . '/maintenance.html');
?>

///////////////oがoldでnがnew
<html>
Sorry, the site is currently under maintenance
現在メンテナンス作業のため当サービスを一時停止しております
--------------------------------------------------------
ご利用の皆様にはご不便をおかけし大変申し訳ございません。
メンテナンス終了まで今しばらくお待ちください。
o
</html>
<html>
Sorry, the site is currently under maintenance
現在メンテナンス作業のため当サービスを一時停止しております
--------------------------------------------------------
ご利用の皆様にはご不便をおかけし大変申し訳ございません。
メンテナンス終了まで今しばらくお待ちください。
n
</html>

■移転 htaccess
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
or
Redirect 301 / http://www.newdomain.com/
or
Redirect permanent /2009/Old/ http://www.exsample.com/2009/New/

■DBバックアップ
ダンプを取るシェルをクロンで起動
http://www.multiburst.net/project-multiburst/archives/2006/01/21/1559.php
#!/bin/sh
# バックアップで残しておく日数
keepday=14

# バックアップを置くディレクトリ
dest=/virtual/myid/db-backup

# MySQLのダンプ処理(とりあえず一時ファイルとして保存)
/usr/local/mysql/bin/mysqldump -u ユーザ名 --password='xxxxxx' --opt データベース名 > /virtual/myid/db-backup/tmp

# 改めてバックアップ元ファイルとして指定
srcfile=/virtual/myid/db-backup/tmp

# タイムスタンプの取得
timestamp=`date +%Y%m%d`
old_date=`date "-d$keepday days ago" +%Y%m%d`

bkfile=$dest/$timestamp.tar.gz

tar zcvf $bkfile $srcfile
# > /dev/null 2>&1

if [ $? != 0 -o ! -e $bkfile ]; then
echo "backup faild -- ($srcfile)"
exit 1
fi

rmfile=$dest/$old_date.tar.gz

if [ -e $rmfile ]; then
rm -f $rmfile
fi

rm -f /virtual/myid/db-backup/tmp

exit

twitter
Hatena
Google Buzz
newsing
Yahoo!
Buzzurl
Technorati
del.icio.us
Choix
Iza!
Livedoor Clip
Facebook
Evernote
 

Posted by funa : 05:05 PM | Web | Comment (0) | Trackback (0)


PhotoGallery


TWITTER
Search

Mobile
QR for cellphone  QR for smart phone
For mobile click here
For smart phone click here
Popular Page
#1Web
#2Hiace 200
#3Gadget
#4The beginning of CSSレイアウト
#5Column
#6Web font test
#7Ora Ora Ora Ora Ora
#8Wifi cam
#9みたらし団子
#10Arcade Controller
#11G Suite
#12PC SPEC 2012.8
#13Javascript
#14REMIX DTM DAW - Acid
#15RSS Radio
#16Optimost
#17通話SIM
#18Attachment
#19Summer time blues
#20Enigma
#21Git
#22Warning!! Page Expired.
#23Speaker
#24Darwinian Theory Of Evolution
#25AV首相
#26htaccess mod_rewite
#27/// BANGBOO BLOG /// From 2016-01-01 To 2016-01-31
#28竹書房
#29F☆ck CSS
#30Automobile Inspection
#31No ID
#32Win7 / Win10 Insco
#33Speaker
#34Arcade Controller
#35Agile
#36G Suite
#37Personal Information Privacy Act
#38Europe
#39Warning!! Page Expired.
#40GoogleMap Moblile
#41CSS Selectors
#42MySQL DB Database
#43Ant
#44☆od damnit
#45Teeth Teeth
#46Itinerary with a eurail pass
#47PHP Developer
#48Affiliate
#49/// BANGBOO BLOG /// From 2019-01-01 To 2019-01-31
#50/// BANGBOO BLOG /// From 2019-09-01 To 2019-09-30
#51/// BANGBOO BLOG /// On 2020-03-01
#52/// BANGBOO BLOG /// On 2020-04-01
#53Windows env tips
#54恐慌からの脱出方法
#55MARUTAI
#56A Rainbow Between Clouds‏
#57ER
#58PDF in cellphone with microSD
#59DJ
#60ICOCA
#61Departures
#62Update your home page
#63CSS Grid
#64恐慌からの脱出方法
#65ハチロクカフェ
#66/// BANGBOO BLOG /// On 2016-03-31
#67/// BANGBOO BLOG /// From 2017-02-01 To 2017-02-28
#68/// BANGBOO BLOG /// From 2019-07-01 To 2019-07-31
#69/// BANGBOO BLOG /// From 2019-10-01 To 2019-10-31
#70/// BANGBOO BLOG /// On 2020-01-21
#71Bike
#72Where Hiphop lives!!
#73The team that always wins
#74Tora Tora Tora
#75Blog Ping
#76無料ストレージ
#77jQuery - write less, do more.
#78Adobe Premire6.0 (Guru R.I.P.)
#79PC SPEC 2007.7
#80Google Sitemap
#81Information privacy & antispam law
#82Wifi security camera with solar panel & small battery
#83Hope get back to normal
#84Vice versa
#85ハイエースのメンテ
#86Camoufla
#87α7Ⅱ
#88Jack up Hiace
#89Fucking tire
#90Big D
#914 Pole Plug
#925-year-old shit
#93Emancipation Proclamation
#94Windows env tips
#95Meritocracy
#96Focus zone
#97Raspberry Pi
#98Mind Control
#99Interview
#100Branding Excellent
Category
Recent Entry
Trackback
Comment
Archive
<     April 2024     >
Sun Mon Tue Wed Thi Fri Sat
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
Link