无法删除 duplicity s3/glacier 档案

无法删除 duplicity s3/glacier 档案

为了将我的系统备份到 s3,我正在运行:

  • duplicity 0.8.17
  • Python 3.9.2
  • boto3'1.24.36'

我的每日备份运行良好,正如所希望的那样,它们在一个月后从 s3 移动到了 glacier,duplicity 状态显示一切正常,每月有完整备份,每日有增量备份,可以追溯到 62 个月前,例如

Secondary chain 54 of 62:
-------------------------
Chain start time: Sun Oct 24 02:05:01 2021
Chain end time: Tue Nov 23 02:05:01 2021
Number of contained backup sets: 31
Total number of contained volumes: 8223
 Type of backup set:                            Time:   Number of volumes:
                Full         Sun Oct 24 02:05:01 2021              6450
         Incremental         Mon Oct 25 02:05:02 2021                64
               ...[30 more incrementals]...

但当我尝试修剪旧的增量时

duplicity remove-all-inc-of-but-n-full 7 --force boto3+s3:///[bucket name]/

我明白了

Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
No old backup sets found, nothing deleted.

我搜索了但什么也没找到。问题可能是因为较旧的档案在 glacier 上吗?元数据都在 s3 上,这是理所当然的……

答案1

需要说明的是,问题--file-prefix在于备份时遗漏了某些选项。下面是命令做过工作:

  duplicity remove-all-inc-of-but-n-full \
    --file-prefix-manifest=m_ --file-prefix-archive=a_ --file-prefix-signature=s_ \
    --encrypt-key=xxx --sign-key=xxx \
     --force 7 boto3+s3:///markup.co.uk/

我唯一的借口是这些选项对于状态命令的工作来说不是必需的。

相关内容