1

I'm using duplicity to save encrypted backups to remote machine A once per day. I'd like remote machine B to download those backups from remote machine A, but only the new archives so that if A is compromised and the backups are tampered with, B will still have clean backups up to that point.

duplicity first saves a series of files like this:

duplicity-full.20140330T145552Z.manifest.gpg
duplicity-full.20140330T145552Z.vol1.difftar.gpg
duplicity-full.20140330T145552Z.vol2.difftar.gpg
duplicity-full-signatures.20140330T145552Z.sigtar.gpg

Subsequent backup operations save a series of files like this:

duplicity-inc.20140330T145837Z.to.20140330T145933Z.manifest.gpg
duplicity-inc.20140330T145837Z.to.20140330T145933Z.vol1.difftar.gpg
duplicity-new-signatures.20140330T145837Z.to.20140330T145933Z.sigtar.gpg

In a bash script, how can I have machine B download only the files it doesn't have yet and not alter the ones it does have?

4

1 回答 1

0

您可以使用在 和rsync之间同步备份文件夹,AB使用它的--ignore-existing选项来跳过机器上已经存在的文件B

--忽略现有

  skip updating files that exist on receiver
于 2014-03-30T16:02:47.100 回答