备份失败,需要帮助避免失败

备份失败,需要帮助避免失败

备份(Deja Dup)无法对我的 Amazon S3 进行初始备份,尽管我尽了最大的努力在 Google 上搜索,但仍找不到解决方案 :(

错误信息如下:

BackendException: Error uploading s3+http://deja-dup-auto-akiaiksyiqi3buaaz26a/My-Archive/duplicity-full.20130805T143807Z.vol1.difftar.gpg

我在 System76 上运行 Ubuntu 12.04 LTS。我尝试在 S3 中备份到的文件夹设置为存储为 Amazon Glacier Storage。

任何帮助都会很有帮助!

更新:更好的调试信息:

DUPLICITY: . Failed to create bucket (attempt #1) 'deja-dup-auto-axxxxxxxxxxxa' failed (reason: S3ResponseError: S3ResponseError: 403 Forbidden
DUPLICITY: . <?xml version="1.0" encoding="UTF-8"?>
DUPLICITY: . <Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><StringToSignBytes>47 00 54 0a 0a 0a 4d 6f 6e 00 20 30 35 20 00 75 67 20 32 30 31 00 00 35 00 32 34 3a 31 32 20 47 4d 00 0a 2f 64 65 6a 61 2d 64 75 70 2d 61 75 74 6f 2d 61 6b 69 00 6b 73 79 69 71 69 33 62 75 61 00 7a 32 36 61 2f</StringToSignBytes><RequestId>8000000000003</RequestId><HostId>Uxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxRF</HostId><SignatureProvided>yxxxxxxxxxxxxxxxxxxxxx</SignatureProvided><StringToSign>GET

答案1

可能是您提供给 Déjà Dup 的凭证不允许它在您的 S3 帐户顶层创建存储桶?

这样如何:在 S3 中创建一个存储桶,然后创建一个可以在那里读写的用户,并确保 Déjà Dup 将使用您创建的存储桶和用户。

  1. 创建存储桶后,访问https://console.aws.amazon.com/iam/home?#users
  2. 创建新用户(确保选中“为该用户生成访问密钥”)
  3. 保存凭证。稍后您将把它们输入到 Déjà Dup 中。
  4. 点击新用户并选择“附加用户策略”。
  5. 在“选择策略模板”窗口下,选择“Amazon S3 完全访问”。单击确认窗口中的“应用策略”。
  6. sudo apt-get install dconf-tools
  7. dconf-editor
  8. 在 dconf 编辑器中,导航到 org > gnome > deja-dup > s3。
  9. 在名为“bucket”的键下,将值更改为您已创建的 S3 存储桶的名称。
  10. 再次运行 deja-dup /“备份”,并确保备份位置正确。输入新的凭据。运行备份并首先测试单个小文件夹。

相关内容