我已经在 centos-7 上安装了 duplicity,并且能够加密数据并能够在其他服务器上恢复数据。
duplicity --encrypt-key='12005FB81112' etc.gz scp://[email protected]/backup/
当我恢复备份时,我能够在原始服务器中恢复相同的内容。
duplicity restore --ssh-askpass scp://[email protected]/backup/ /backup
但是当我在其他服务器上运行相同的命令时,它出现以下错误,那么如何在其他服务器上恢复?????
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: directory `/home/niraj/.gnupg' created
gpg: new configuration file `/home/niraj/.gnupg/gpg.conf' created
gpg: WARNING: options in `/home/niraj/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/home/niraj/.gnupg/secring.gpg' created
gpg: keyring `/home/niraj/.gnupg/pubring.gpg' created
gpg: encrypted with RSA key, ID 4FA0BF28
gpg: decryption failed: No secret key
===== End GnuPG log =====
答案1
您可以通过以下方式进行ftp 代替 scpprocol。不加密。完整备份示例:
duplicity full <your-folder-or-file> ftp://user:pass@<host>/backup-folder/
对我来说很管用。我还尝试通过 sftp 或 scp 进行操作,但尚未找到问题所在。所以这是一个临时答案。