2009年10月アーカイブ

div.main{
background:url(img/bg_page.png);
}

* html div.main{
behavior: expression(
this.style.behavior || (
this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=crop,
src='"+this.currentStyle.getAttribute("backgroundImage").slice(5,-2)+"')",
this.style.backgroundImage = "none",
this.style.behavior = "none"
)
);
}

ノーリピートの時
div.main{
background:url(img/bg_page.png) repeat-y;
}

* html div.main{
behavior: expression(
this.style.behavior || (
this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,
src='"+this.currentStyle.getAttribute("backgroundImage").slice(5,-2)+"')",
this.style.backgroundImage = "none",
this.style.behavior = "none"
)
);
}

テストサイトから本番サイトにDBをそっくりそのままうつしたいときの処理。
もちろんバックアップにも利用できます。
db_20090101というのは何でも良いけど、日付を入れとくとバックアップ用によいでしょう。

【テストサーバにて】
■DB全体をうつす
pg_dump DB名 > db_20090101.dump

■テーブルのみうつす
pg_dump DB名 -t テーブル名 > db_20090101.dump
でdumpファイルを作ります。

【本番サーバにて】
drop table テーブル名(テーブルが存在するならまず削除)
psql -d DB名 -e < db_20090101.dump