0

我尝试从 amazon s3 通过 duplicity 恢复单个文件或目录,但出现错误。

Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1251, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1244, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1198, in main
    restore(col_stats)
  File "/usr/bin/duplicity", line 538, in restore
    restore_get_patched_rop_iter(col_stats)):
  File "/usr/bin/duplicity", line 560, in restore_get_patched_rop_iter
    backup_chain = col_stats.get_backup_chain_at_time(time)
  File "/usr/lib/python2.6/dist-packages/duplicity/collections.py", line 934, in get_backup_chain_at_time
    raise CollectionsError("No backup chains found")
CollectionsError: No backup chains found

我做错了什么?

这里我如何做备份 export PASSPHRASE= * *** export AWS_ACCESS_KEY_ID= * *** export AWS_SECRET_ACCESS_KEY= * *** GPG_KEY= * *** BACKUP_SIM_RUN=1

LOGFILE="/var/log/s3-backup.log"
DAILYLOGFILE="/var/log/s3-backup-daily.log"

# The source of your backup
SOURCE=/home/u54433

# The destination
DEST=s3+http://**********


trace () {
        stamp=`date +%Y-%m-%d_%H:%M:%S`
        echo "$stamp: $*" >> ${DAILYLOGFILE}
}

cat /dev/null > ${DAILYLOGFILE}

trace "removing old backups..."
duplicity remove-older-than 2M --force --sign-key=${GPG_KEY} ${DEST} >> ${DAILYLOGFILE} 2>&1

trace "start backup files..."
duplicity --sign-key=${GPG_KEY} --exclude="**/logs" --s3-european-buckets --s3-use-new-style ${SOURCE} ${DEST} >> ${DAILYLOGFILE} 2>&1

cat "$DAILYLOGFILE" >> $LOGFILE

export PASSPHRASE=
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
4

3 回答 3

2

在所有重复调用中使用 - -s3-use-new-style选项。

我遇到了和你一样的问题。我在“duplicity remove-older-than”中添加了缺失的选项,现在一切正常。

于 2013-11-01T20:16:59.737 回答
0

最好从亚马逊删除 S3 存储桶并尝试重新创建完整备份,这可能会解决问题。

你可以看到下面的链接

https://answers.launchpad.net/duplicity/+question/107074

于 2013-05-23T05:45:25.350 回答
0

对于任何回到这个问题寻找明确答案的人,@shaikh-systems链接导致人们意识到 IAM 子账户密钥的 Duplicity/AWS 通信存在一些问题。为了恢复,我通过使用export我的主帐户密钥/秘密让它工作。我正在使用重复 0.6.21。

于 2014-09-12T20:35:05.080 回答