![Duplicity 和 S3:“写入操作超时”](https://linux22.com/image/1709017/Duplicity%20%E5%92%8C%20S3%EF%BC%9A%E2%80%9C%E5%86%99%E5%85%A5%E6%93%8D%E4%BD%9C%E8%B6%85%E6%97%B6%E2%80%9D.png)
我正在尝试在 Amazon S3 上使用 duplicity 设置自动备份,但我一直收到一个奇怪的错误,该错误不会显示在 Google 搜索中。
machina:~# duplicity --version
duplicity 0.6.14
这是我正在使用的脚本:
#!/bin/bash
export AWS_ACCESS_KEY_ID=????
export AWS_SECRET_ACCESS_KEY=????
export PASSPHRASE=????
duplicity --encrypt-key=A36FFD9E --sign-key DA5D5B8B --s3-european-buckets --s3-use-new-style /source/folder/ s3+http://[bucket].s3.amazonaws.com
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
export PASSPHRASE=
...输出:
machina:~# ./backup.sh
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
No signatures found, switching to full backup.
Upload 's3+http://[bucket].s3.amazonaws.com/duplicity-full.20110910T164251Z.vol1.difftar.gpg' failed (attempt #1, reason: SSLError: The write operation timed out)
Upload 's3+http://[bucket].s3.amazonaws.com/duplicity-full.20110910T164251Z.vol1.difftar.gpg' failed (attempt #2, reason: SSLError: The write operation timed out)
Upload 's3+http://[bucket].s3.amazonaws.com/duplicity-full.20110910T164251Z.vol1.difftar.gpg' failed (attempt #3, reason: SSLError: The write operation timed out)
Upload 's3+http://[bucket].s3.amazonaws.com/duplicity-full.20110910T164251Z.vol1.difftar.gpg' failed (attempt #4, reason: SSLError: The write operation timed out)
Upload 's3+http://[bucket].s3.amazonaws.com/duplicity-full.20110910T164251Z.vol1.difftar.gpg' failed (attempt #5, reason: SSLError: The write operation timed out)
Giving up trying to upload s3+http://[bucket].s3.amazonaws.com/duplicity-full.20110910T164251Z.vol1.difftar.gpg after 5 attempts
BackendException: Error uploading s3+http://[bucket].s3.amazonaws.com/duplicity-full.20110910T164251Z.vol1.difftar.gpg
我尝试运行该脚本多次,但无济于事。有人遇到过这种情况吗?