トップ «前の日記(2010-10-12) 最新 次の日記(2010-10-14)» 編集

ヨタの日々

2001|08|09|10|11|12|
2002|01|02|03|04|05|06|07|08|09|10|11|12|
2003|01|02|03|04|05|06|07|08|09|10|11|12|
2004|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|09|10|11|12|
2012|01|02|03|04|05|06|07|08|09|10|11|12|
2013|01|02|03|04|05|06|07|08|09|10|11|12|
2014|01|02|03|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|05|06|07|08|09|10|11|12|
2016|01|02|03|04|05|06|07|08|09|10|11|12|
2017|01|02|03|04|05|06|07|08|09|10|11|12|
2018|01|02|03|04|05|06|07|08|09|10|11|12|
2019|01|02|03|04|05|06|07|08|09|10|11|12|
2020|01|02|03|04|05|06|07|08|09|10|11|12|
2021|01|02|03|04|05|06|07|08|09|10|11|12|
2022|01|02|03|04|05|06|07|08|09|10|11|12|
2023|01|02|03|04|05|06|07|08|12|
2024|01|02|03|

2010-10-13 :-)

_ 朝ッ

0520 起床

_ 仕事

0830 出勤

_ [RR7][ジョーク]RR7

「他人の走りを見て、あいつは下手だなと思ったら、そいつは自分と同じぐらい。同じぐらいだなと思ったら、かなり上。うまいなあと感じたら、とてつもなく先へ行っている」

ref. 他人の芸を見て、 あいつは下手だなと思っ...:名言集.com

_ [Google Site]Google Site に作ったサイトをバックアップする

リッジレーサー7 Team ANS のサイト は Google Site を使っている。これをバックアップする。

バックアップするには google-sites-liberation - Project Hosting on Google Code を使う。

ダウンロードした .jar をダブルクリックすると GUI が起動するんだがコマンドラインからも使える → Sites Import/Export Tool User's Guide

Advanced Execution

The tool is written in Java and the source code is currently hosted at code.google.com. Upon building the tool, there are three main classes. The class com.google.sites.liberation.export.Main allows the execution of a Sites export from the command line. The class com.google.sites.liberation.imprt.Main is the equivalent for a Sites import (note that the package name is "imprt," due to the Java keyword collision). The class com.google.sites.liberation.util.GuiMain provides a graphical user interface for launching both imports and exports. In all cases, the import/export takes the following arguments:

わかりません

ググる

あった → Issue 39 - google-sites-liberation - Import does not work - Project Hosting on Google Code

バッチファイルを書くとこんな感じになる。

set prog="C:\home\rin\usr\local\google-sites-liberation\google-sites-liberation-1.0.1.jar"
set class="com.google.sites.liberation.export.Main"
set host="sites.google.com"
set domain="team-ans.jp"
set user=miwarin
set passwd=PASSWORD
set webspace="rr7"
set wdir="C:\home\rin\work\game\RR\7\team-ans.jp\backup"

java -cp %prog% %class% -h %host% -d %domain% -w %webspace% -u %user% -p %passwd% -f %wdir%

実行してみる。

>java -cp google-sites-liberation-1.0.1.jar com.google.sites.liberation.export.Main -h "sites.google.com" -d "team-ans.jp" -w "rr7" -u miwarin -p PASSWORD -f "C:\home\rin\work\game\RR\7\team-ans.jp\backup"
Retrieving site data (this may take a few minutes).
Retrieved 20 entries.
Retrieved 40 entries.
Retrieved 60 entries.
Retrieved 80 entries.
Retrieved 100 entries.
Retrieved 120 entries.
Retrieved 140 entries.
2010/10/13 22:04:06 com.google.sites.liberation.export.InMemoryEntryStore addEntry
警告: All non-page entries must have a parent!
2010/10/13 22:04:06 com.google.sites.liberation.export.InMemoryEntryStore addEntry
警告: All non-page entries must have a parent!
Exporting page: オーさん阻止.
Current progress: 0%.
Exporting page: 新メンバー.
Current progress: 1%.
Exporting page: ANS vs. RASER 交流戦 2009(CONTI4Xさん視点).
Current progress: 2%.

  :

Current progress: 97%.
Downloading attachment: 交流戦結果.pdf.
Current progress: 98%.
Downloading attachment: commentevent.xml.
Current progress: 99%.
Downloading attachment: commentevent14.xml.
Current progress: 100%.
Export complete.

おk

タスクスケジューラーに登録しておく。

_ ,

ちなみにいままで手動で GUI で実行してバックアップしてたんだがコマンドラインからのやり方を調べようとしててずーーーーーーーーーーーーーーーーーーーーーーーーっと放置してて今更調べたんである。

本日のツッコミ(全2件) [ツッコミを入れる]
_ キノピオ (2010-10-14 22:55)

この日確かグランツーリスモ5、まさかの延期が決まりました・・・。

_ みわ (2010-10-14 23:54)

ある意味 期待通りです(ノ∀`)