You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: [email protected]
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 [email protected] -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 [email protected]
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%"
Original issue reported on code.google.com by [email protected] on 27 Mar 2013 at 5:33
Original issue reported on code.google.com by
[email protected]
on 27 Mar 2013 at 5:33Attachments:
The text was updated successfully, but these errors were encountered: