Tin*_*ino 5 authentication backup automation google-sites google-apps
几天后,使用google-sites-liberation的谷歌网站备份停止了工作.
电话
java -cp google-sites-liberation.jar com.google.sites.liberation.export.Main -d "$DOMAIN" -w wiki -u "$USER" -p "$PASSWORD" -f "$DIR/" 2>&1
Run Code Online (Sandbox Code Playgroud)
以前一直工作的失败了:
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)
at com.google.sites.liberation.export.Main.doMain(Main.java:89)
at com.google.sites.liberation.export.Main.main(Main.java:97)
Caused by: com.google.gdata.util.AuthenticationException: Error authenticating (check service name)
at com.google.gdata.client.GoogleAuthTokenFactory.getAuthException(GoogleAuthTokenFactory.java:614)
at com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(GoogleAuthTokenFactory.java:490)
at com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials(GoogleAuthTokenFactory.java:336)
at com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:362)
at com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:317)
at com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:301)
at com.google.sites.liberation.export.Main.doMain(Main.java:79)
... 1 more
Run Code Online (Sandbox Code Playgroud)
我检查了凭据,帐户的凭据是正确的.但它是主帐户的密码,现在可能在Google上有更严格的安全设置.
我试图找到一个使用谷歌搜索的解决方案,但只是偶然发现旧的建议,这些建议有解决方案,今天不再可用.此外,我没有找到将用户/密码应用程序登录添加到用于备份Wiki的帐户的方法.
有没有人指针如何解决这个问题并使谷歌网站的备份再次可用?
所有答案都很好,提供了备份网站的解决方案:
例如,使用其他完全^ 2自动化工具,它可以将整个站点复制到目录或存档格式 .tar.bz2
改变google-sites-liberation,它使用另一种身份验证方法,然后在几年前的文档中给出.我找不到它.
请注意,用于备份的帐户不得拥有用于域管理员访问的完整Google应用,因为这非常重要.
请不要外部供应商链接,除非是来自Google.网站的数据不得与第三方共享,只能与Google和我分享.
请注意,该过程必须完全自动化,但我希望它能完全自动化:
如果它只是完全自动化,那就不是什么大问题,因为我只想备份我的小单个站点(只有几千页附件).但是我很好奇如何完全自动化它,因为自动化所有东西(包括但不限于宇宙)是我几十年前进入计算机业务的动力.
谢谢.
链接:
更新2015-06-23:
我的脚本每天运行,它们会告诉我们是否出现问题,但如果它们按预期工作则不会.所以我监督它突然工作了几天.但今天又失败了:
Run Code Online (Sandbox Code Playgroud)2015-05-27 to 2015-06-11 (15 days) authentication failure 2015-06-12 to 2015-06-22 (11 days) it works again 2015-06-23 (today) authentication failure again我不知道它为什么突然工作了11天.我可能会在下一次ok-to-fail转换时再次更新这个问题.;)
Google 使用 OAuth2 而不是用户帐户/密码。
我修复了 GUI 界面。 https://github.com/sih4sing5hong5/google-sites-liberation
但我不知道 OAuth2 与自动脚本。