简体   繁体   English

备份到Google Drive时出现双重故障

[英]Backing Up To Google Drive with Duplicity Not Working

I'm trying to backup to Google Drive with Duplicity, and I can't seem to figure it out. 我正在尝试使用Duplicity备份到Google云端硬盘,但似乎无法弄清楚。 I run this: 我运行这个:

GOOGLE_DRIVE_SETTINGS=gdrive duplicity / pydrive+gdocs://*******[:*********]@other.host/server-backup

and I get this: 我得到这个:

  File "/usr/local/lib/python2.7/dist-packages/pydrive/auth.py", line 314, in LoadClientConfigFile
    raise InvalidConfigError('Invalid client secrets file %s' % error)
InvalidConfigError: Invalid client secrets file ('Error opening file', 'client_secrets.json', 'No such file or directory', 2)

I saved my client ID and client secret bits in the gdrive file (for GOOGLE_DRIVE_SETTINGS), but no matter where I try, I cannot seem to figure out where to put the client_secrets.json file. 我将客户ID和客户机密信息保存在gdrive文件中(适用于GOOGLE_DRIVE_SETTINGS),但是无论我在哪里尝试,我似乎都无法弄清楚将client_secrets.json文件放在何处。 I would appreciate any help in getting this working. 我将不胜感激在此工作上的任何帮助。

the manpage http://duplicity.nongnu.org/duplicity.1.html#sect22 says to give the settings filename as the GOOGLE_DRIVE_SETTINGS env var. http://duplicity.nongnu.org/duplicity.1.html#sect22的联机帮助页中说,将设置文件名指定为GOOGLE_DRIVE_SETTINGS环境变量。 locationwise i would guess it would be placed in the current user's home folder. locationwise我想它将被放置在当前用户的主文件夹中。 alternatively try setting an absolute path to the file. 或者尝试设置文件的绝对路径。

make sure that the file is formatted as the manpage states. 确保将文件格式化为手册页状态。

..ede/duply.net ..ede / duply.net

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM