authentication - How to fix login for google-sites-liberation to backup google apps for domain sites again? -
for few days backup of google sites using google-sites-liberation stopped working.
the call
java -cp google-sites-liberation.jar com.google.sites.liberation.export.main -d "$domain" -w wiki -u "$user" -p "$password" -f "$dir/" 2>&1
which worked before fails with:
may 29, 2015 1:48:23 pm com.google.sites.liberation.export.main domain severe: invalid user credentials! exception in thread "main" java.lang.runtimeexception: com.google.gdata.util.authenticationexception: error authenticating (check service name) @ com.google.sites.liberation.export.main.domain(main.java:89) @ com.google.sites.liberation.export.main.main(main.java:97) caused by: com.google.gdata.util.authenticationexception: error authenticating (check service name) @ com.google.gdata.client.googleauthtokenfactory.getauthexception(googleauthtokenfactory.java:614) @ com.google.gdata.client.googleauthtokenfactory.getauthtoken(googleauthtokenfactory.java:490) @ com.google.gdata.client.googleauthtokenfactory.setusercredentials(googleauthtokenfactory.java:336) @ com.google.gdata.client.googleservice.setusercredentials(googleservice.java:362) @ com.google.gdata.client.googleservice.setusercredentials(googleservice.java:317) @ com.google.gdata.client.googleservice.setusercredentials(googleservice.java:301) @ com.google.sites.liberation.export.main.domain(main.java:79) ... 1 more
i checked credentials, credentials of account correct. main account's password, has more strict security settings on google now.
i tried find solution using google-search stumbled on old suggestions had solutions no more available today. did not find way add user/password application login account used backup wiki.
has pointer how fix , make backup of google site available again?
all answers offer solution backup site:
use other fully^2 automated tool job of copying entire site directory or archive format, example
.tar.bz2
change google-sites-liberation such, uses authentication method given in docs couple of years old now. did not manage find it.
note account used backup must not have full google apps domains administrator access, crucial.
please no external vendor links except if google. data of site(s) must not shared third party, google , me.
note process must fully^2 automated, have fully^4 automated:
- fully^1, because must run @ regular intervals.
- fully^2, because must start without user intervention whatsoever (some people define "fully automated" start manually such runs itself, while "automated" means have script still may ask additional input)
- fully^3, because should not involve user intervention process started (like issuing google authenticator token) @ first run (even if later runs fully^2 automated)
- fully^4, because want able setup process several thousands sites in automated, noninteractive way, when process prepares setup runs on host offline (so setup can uploaded fully^3 automated system without additional manual setup steps example using ipoac. ykwim).
not of problem if fully^2 automated, want backup little single site (only few thousand pages attachments). curious how fully^4 automated, because automating (including, not limited to, universe) motivation getting computer business several decades ago ..
thanks.
links:
- https://code.google.com/p/google-sites-liberation/ bit dated code retrieve sites
- https://www.google.com/settings/takeout not include google apps domain sites
- http://blog.famzah.net/2014/08/06/authentication-for-google-sites-liberation/ noted account setting not (no more) available
- was unable find suitable link how implement google apps domain backup tool, result pages looked @ (several!) seem exclusively third party vendors on matter more or less unknown trustworthyness. perhaps unable define right google search on matter.
update 2015-06-23:
my scripts run every day , tell if goes wrong, not if work intended. oversaw worked few days. today failed again:
2015-05-27 2015-06-11 (15 days) authentication failure 2015-06-12 2015-06-22 (11 days) works again 2015-06-23 (today) authentication failure again
i have no idea why worked 11 days. i'll update question again on next ok-to-fail transition. ;)
google uses oauth2 instead of user account/password.
i fixed gui interface. https://github.com/sih4sing5hong5/google-sites-liberation
but have no idea oauth2 auto scripts.
Comments
Post a Comment