Open GoogleCodeExporter opened 8 years ago
The following is what I get when trying the command line option to do the
import.
java -cp google-sites-liberation-1.0.1.jar
com.google.sites.liberation.imprt.Main -
d "mydomain.org" -w "My-Site" -u Myuser -p MyPassword -f
"D:\GoogleSitesBackup\My-
Site"
Thanks
================================================================================
==
Scanning directory.
Importing page: home
Dec 11, 2009 4:50:01 PM com.google.sites.liberation.imprt.EntryInserterImpl inse
rtEntry
WARNING: Unable to insert entry: {WebPageEntry {BasePageEntry {BaseContentEntry
com.google.gdata.data.sites.WebPageEntry@20f8395f}}}
com.google.gdata.util.ResourceNotFoundException: Not Found
Site not found
at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(Htt
pGDataRequest.java:555)
at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(G
oogleGDataRequest.java:543)
at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGData
Request.java:536)
at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataReques
t.java:515)
at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRe
quest.java:515)
at com.google.gdata.client.Service.insert(Service.java:1327)
at com.google.gdata.client.GoogleService.insert(GoogleService.java:599)
at com.google.gdata.client.media.MediaService.insert(MediaService.java:3
72)
at com.google.sites.liberation.imprt.EntryInserterImpl.insertEntry(Entry
InserterImpl.java:26)
at com.google.sites.liberation.imprt.EntryUploaderImpl.uploadEntry(Entry
UploaderImpl.java:111)
at com.google.sites.liberation.imprt.PageImporterImpl.importPage(PageImp
orterImpl.java:104)
at com.google.sites.liberation.imprt.SiteImporterImpl.importPage(SiteImp
orterImpl.java:61)
at com.google.sites.liberation.imprt.SiteImporterImpl.importSite(SiteImp
orterImpl.java:47)
at com.google.sites.liberation.imprt.Main.doMain(Main.java:85)
at com.google.sites.liberation.imprt.Main.main(Main.java:101)
Current progress: 100%.
Current progress: 100%.
Import complete.
Original comment by chellaps...@gmail.com
on 11 Dec 2009 at 10:57
has the site been created yet? the import tool will not create new sites. it
will only
import into existing sites.
Original comment by gk5...@kickstyle.net
on 6 Jan 2010 at 4:35
Hi, Thanks for the response. I tried both ways, with and without creating the
sites.
The gui tool show the import complete, but nothing happens. The command line
tool
shows the following...
C:\Temp\Google\Google Sites>java -cp google-sites-liberation-1.0.1.jar com.goog
le.sites.liberation.imprt.Main -d mydomain.org -w mysite -u myusername -p
mypassword -f "C:\Temp\Google\Google Sites\Mysitebackup"
Scanning directory.
Importing page: home
Jan 7, 2010 1:52:25 PM com.google.sites.liberation.imprt.EntryUpdaterImpl update
Entry
WARNING: Unable to update entry:{WebPageEntry {BasePageEntry {BaseContentEntry c
om.google.gdata.data.sites.WebPageEntry@ae533a}}}
com.google.gdata.util.ServiceForbiddenException: Forbidden
If-Match or If-None-Match header required
at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(Htt
pGDataRequest.java:561)
at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(G
oogleGDataRequest.java:543)
at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGData
Request.java:536)
at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataReques
t.java:515)
at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRe
quest.java:515)
at com.google.gdata.client.Service.update(Service.java:1482)
at com.google.gdata.client.Service.update(Service.java:1448)
at com.google.gdata.client.GoogleService.update(GoogleService.java:583)
at com.google.sites.liberation.imprt.EntryUpdaterImpl.updateEntry(EntryU
pdaterImpl.java:47)
at com.google.sites.liberation.imprt.EntryUploaderImpl.uploadEntry(Entry
UploaderImpl.java:113)
at com.google.sites.liberation.imprt.PageImporterImpl.importPage(PageImp
orterImpl.java:104)
at com.google.sites.liberation.imprt.SiteImporterImpl.importPage(SiteImp
orterImpl.java:61)
at com.google.sites.liberation.imprt.SiteImporterImpl.importSite(SiteImp
orterImpl.java:47)
at com.google.sites.liberation.imprt.Main.doMain(Main.java:85)
at com.google.sites.liberation.imprt.Main.main(Main.java:101)
Current progress: 100%.
Current progress: 100%.
Import complete.
Original comment by chellaps...@gmail.com
on 7 Jan 2010 at 7:56
I get the same error when trying to import even one file to an existing site
(Issue
#41).
WARNING: Unable to update entry:{WebPageEntry {BasePageEntry {BaseContentEntry c
om.google.gdata.data.sites.WebPageEntry@ae533a}}}
com.google.gdata.util.ServiceForbiddenException: Forbidden
Original comment by jre...@gmail.com
on 11 Jan 2010 at 3:21
Original issue reported on code.google.com by
chellaps...@gmail.com
on 11 Dec 2009 at 8:47