gpt4 book ai didi

authentication - 如何修复 google-sites-liberation 的登录以再次为域站点备份谷歌应用程序?

转载 作者:行者123 更新时间:2023-12-04 06:41:36 24 4
gpt4 key购买 nike

几天来,使用 google-sites-liberation 备份 google 站点停止工作。

电话

java -cp google-sites-liberation.jar com.google.sites.liberation.export.Main -d "$DOMAIN" -w wiki -u "$USER" -p "$PASSWORD" -f "$DIR/" 2>&1

以前总是有效的现在失败了:
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

我检查了凭据,帐户的凭据是正确的。不过是主账户的密码,现在谷歌可能有更严格的安全设置。

我试图使用 Google 搜索找到解决方案,但只是偶然发现了一些旧的建议,这些建议的解决方案如今已不再可用。此外,我没有找到将用户/密码应用程序登录名添加到用于备份 wiki 的帐户的方法。

有没有人指点一下如何解决这个问题并使谷歌网站的备份再次可用?

所有答案都很好,提供了备份站点的解决方案:
  • 使用其他一些完全 ^2 的自动化工具来完成将整个站点复制到目录或存档格式的工作,例如 .tar.bz2
  • 更改 google-sites-liberation,使其使用另一种身份验证方法,然后在几年前的文档中给出。我没能找到它。
  • 请注意,用于备份的帐户不得具有用于域管理员访问的完整 google 应用程序,因为这至关重要。

  • 请不要外部供应商链接,除非它来自 Google。该网站的数据不得与第三方共享,只有 Google 和我。

    请注意,该过程必须完全自动化 ^2,但我希望它甚至完全自动化 ^4:
  • 完全^1,因为它必须定期运行。
  • 完全^2,因为它必须在没有用户干预的情况下启动(有些人将“完全自动化”定义为手动启动某些东西以便它自己运行,而“自动化”意味着拥有一个仍然可能要求一些额外输入的脚本)
  • 完全^3,因为它不应该涉及用户干预以在第一次运行时启动该过程(例如发出类似谷歌身份验证器 token 的东西)(即使它后来完全自动运行^2)
  • 完全^4,因为我希望能够以自动化的、非交互式的方式为数千个站点设置过程,当准备设置的过程在离线的主机上运行时(因此设置可以上传到完全^ 3 自动化系统,无需任何额外的手动设置步骤,例如使用 IPoAC . YKWIM)。

  • 如果它只是完全 ^2 自动化,那就没什么问题了,因为我只想备份我的小站点(只有几千页带有附件)。然而,我很好奇如何让它完全自动化^4,因为自动化一切(包括但不限于宇宙)是我几十年前进入计算机行业的动机..

    谢谢。

    链接:
  • https://code.google.com/p/google-sites-liberation/用于检索站点的有点过时的代码
  • https://www.google.com/settings/takeout不包括域站点的谷歌应用程序
  • http://blog.famzah.net/2014/08/06/authentication-for-google-sites-liberation/注意到的帐户设置不(不再)可用
  • 无法找到任何合适的链接如何使用另一个工具实现域备份的谷歌应用程序,我查看的所有结果页面(几个!)似乎专门针对第三方供应商在这个问题上或多或少未知的可信度。所以也许我无法在这个问题上定义正确的谷歌搜索。

  • Update 2015-06-23:

    My scripts run every day and they tell if something goes wrong, but not if they work as intended. So I oversaw that it suddenly worked for a few days. But today it failed again:

    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

    I have no idea why it suddenly worked for 11 days. I'll probably update this question again on the next ok-to-fail transition. ;)

    最佳答案

    Google 使用 OAuth2 而不是用户帐户/密码。

    我修复了 GUI 界面。
    https://github.com/sih4sing5hong5/google-sites-liberation

    但我不知道带有自动脚本的 OAuth2。

    关于authentication - 如何修复 google-sites-liberation 的登录以再次为域站点备份谷歌应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30530605/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com