Issue 98 in google-sites-liberation: Tips and tricks to getting Google Sites Liberation working

79 views
Skip to first unread message

google-site...@googlecode.com

unread,
Mar 27, 2013, 1:33:59 PM3/27/13
to google-sites-...@googlegroups.com
Status: New
Owner: ----

New issue 98 by Photon...@gmail.com: Tips and tricks to getting Google
Sites Liberation working
http://code.google.com/p/google-sites-liberation/issues/detail?id=98

I spent some time today getting Google Sites Liberation working on my
Windows 7 machine. Standing on the Shoulders of Giants -- thank you to
those who posted information in the past which contributed to this.

Assume the following:
Site: https://sites.google.com/site/sitefortestingliberation/
User: Googl...@gmail.com
Pass: password

1. If you are using 2-step authentication for your Google user account the
app will error with "Invalid user credentials." Set-up an application
specific password for the liberation app:
https://accounts.google.com/b/0/IssuedAuthSubTokens

2. To create a Windows command line export (download to your computer), use
the following syntax:

java -cp google-sites-liberation-1.0.4.jar
com.google.sites.liberation.export.Main -h sites.google.com -w
sitefortestingliberation -u Googl...@gmail.com -p password -f
site_export_folder -r

3. since I had three sites to liberate, I wrote the following batch file
(also attached). Note that I copied the jar file into the ALL_SITES_DIR
that will also contain folders for each site.




REM This batch file will export all Google Sites from my account using
Google Sites Liberation java app

REM The following are static variables for each Google site
SET ALL_SITES_DIR=C:\All Google Sites
SET JAR_FILE=google-sites-liberation-1.0.4.jar
SET EXPORT_CLASS=com.google.sites.liberation.export.Main
SET HOST=sites.google.com
SET USERNAME=Googl...@gmail.com
SET PASSWORD=password
SET RESULT_FILE=Site Liberation Log.txt

REM Initialize Log File
ECHO ******** Start Google Sites Data Liberation on %DATE% %TIME% ********
> "%ALL_SITES_DIR%\%RESULT_FILE%"
ECHO. >> "%ALL_SITES_DIR%\%RESULT_FILE%"

REM Google Site Liberation for "Site #1"
ECHO ++++++++ Google Site Liberation for "Site #1" ++++++++
>> "%ALL_SITES_DIR%\%RESULT_FILE%"
SET WEBSPACE=sitenumber1
SET EXPORT_FOLDER=Site 1
java -cp "%ALL_SITES_DIR%\%JAR_FILE%" %EXPORT_CLASS% -h %HOST%
-w %WEBSPACE% -u %USERNAME% -p %PASSWORD%
-f "%ALL_SITES_DIR%\%EXPORT_FOLDER%" -r >> "%ALL_SITES_DIR%\%RESULT_FILE%"
ECHO. >> "%ALL_SITES_DIR%\%RESULT_FILE%"

REM Google Site Liberation for "Site #2"
ECHO ++++++++ Google Site Liberation for "Site #2" ++++++++
>> "%ALL_SITES_DIR%\%RESULT_FILE%"
SET WEBSPACE=sitenumber1
SET EXPORT_FOLDER=Site 2
java -cp "%ALL_SITES_DIR%\%JAR_FILE%" %EXPORT_CLASS% -h %HOST%
-w %WEBSPACE% -u %USERNAME% -p %PASSWORD%
-f "%ALL_SITES_DIR%\%EXPORT_FOLDER%" -r >> "%ALL_SITES_DIR%\%RESULT_FILE%"
ECHO. >> "%ALL_SITES_DIR%\%RESULT_FILE%"

REM Google Site Liberation for "Site #3"
ECHO ++++++++ Google Site Liberation for "Site #3" ++++++++
>> "%ALL_SITES_DIR%\%RESULT_FILE%"
SET WEBSPACE=sitenumber3
SET EXPORT_FOLDER=Site 3
java -cp "%ALL_SITES_DIR%\%JAR_FILE%" %EXPORT_CLASS% -h %HOST%
-w %WEBSPACE% -u %USERNAME% -p %PASSWORD%
-f "%ALL_SITES_DIR%\%EXPORT_FOLDER%" -r >> "%ALL_SITES_DIR%\%RESULT_FILE%"
ECHO. >> "%ALL_SITES_DIR%\%RESULT_FILE%"

ECHO ******** End Google Site Data Liberation on %DATE% %TIME% ********
>> "%ALL_SITES_DIR%\%RESULT_FILE%"





Attachments:
Sites Liberation.bat 1.9 KB

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

google-site...@googlecode.com

unread,
Sep 3, 2014, 1:06:40 PM9/3/14
to google-sites-...@googlegroups.com

Comment #1 on issue 98 by cozyno...@yahoo.com: Tips and tricks to getting
Google Sites Liberation working
https://code.google.com/p/google-sites-liberation/issues/detail?id=98

Thanks for this:
Set-up an application specific password for the liberation app:
https://www.google.com/settings/u/1/security

Changing Access for less secure apps -> Enabled
was the key to getting this working for me

google-site...@googlecode.com

unread,
Jan 16, 2015, 4:56:56 AM1/16/15
to google-sites-...@googlegroups.com

Comment #2 on issue 98 by malayama...@gmail.com: Tips and tricks to getting
If you have two way verification ON, then create an application specific
password.

google-site...@googlecode.com

unread,
May 4, 2015, 8:37:49 AM5/4/15
to google-sites-...@googlegroups.com

Comment #3 on issue 98 by c...@mentorite.com: Tips and tricks to getting
"Changing Access for less secure apps -> Enabled"
is not possible any more...

google-site...@googlecode.com

unread,
May 4, 2015, 8:40:10 AM5/4/15
to google-sites-...@googlegroups.com

Comment #4 on issue 98 by emd...@gmail.com: Tips and tricks to getting

google-site...@googlecode.com

unread,
May 28, 2015, 1:23:51 PM5/28/15
to google-sites-...@googlegroups.com

Comment #5 on issue 98 by cou.nto....@gmail.com: Tips and tricks to getting
how to solve?

google-site...@googlecode.com

unread,
Jun 2, 2015, 9:54:03 AM6/2/15
to google-sites-...@googlegroups.com

Comment #6 on issue 98 by emd...@gmail.com: Tips and tricks to getting
Pls see previous comments #1, #3: "Set-up an application specific password"

google-site...@googlecode.com

unread,
Jun 4, 2015, 11:11:42 AM6/4/15
to google-sites-...@googlegroups.com

Comment #7 on issue 98 by loemas...@gmail.com: Tips and tricks to getting
can you tell me what the prev. posts #1 and #3 are telling me about
creating an specific password for liberation app? First there is no "app".
So I only can choose "other" in the drop down menue. Second, I get an
generated password. But I cant set the "app" nor username and password.
Could you tell me how to do it (right)?

google-site...@googlecode.com

unread,
Jun 23, 2015, 9:56:42 PM6/23/15
to google-sites-...@googlegroups.com

Comment #8 on issue 98 by gns...@gmail.com: Tips and tricks to getting
How would a google Apps for business user do this? The page specifies that
setting app specific passwords is not an option for this account type.

google-site...@googlecode.com

unread,
Jul 21, 2015, 8:54:22 AM7/21/15
to google-sites-...@googlegroups.com

Comment #9 on issue 98 by lawyuek...@gmail.com: Tips and tricks to getting
I am using Google App for Education and have the same question on creating
an specific password for liberation app. And I also want to try the bat
file but I should provide the information of "DOMAIN" and "WEBSPACE". How
do I add it in the bat file?
Reply all
Reply to author
Forward
0 new messages