duplicity 状态第一个主机名字母是大写的

duplicity 状态第一个主机名字母是大写的

有人能猜到为什么 duplicity 突然开始将主机名的第一个字母设为大写或将其视为大写吗?

[root@crew shared_scripts]# duplicity --version
duplicity 0.7.10

[root@crew shared_scripts]# uname -a
Linux crew.gdndev.xyz 3.10.0-327.28.3.el7.x86_64 #1 SMP Thu Aug 18 19:05:49 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

[root@crew shared_scripts]# echo $HOSTNAME 
crew.gdndev.xyz

[root@crew shared_scripts]# hostname
crew.gdndev.xyz

[root@crew shared_scripts]# duplicity --archive-dir /archive-dir --name backup-name --no-encryption --full-if-older-than 2W /backup-source scp://backup-destination
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Tue Nov  8 00:16:35 2016
Fatal Error: Backup source host has changed.
Current hostname: Crew.gdndev.xyz
Previous hostname: crew.gdndev.xyz

昨天还好……一周多来没有更新软件包。正常运行 6 天。

还有什么其他方法可以获取主机名吗?还有其他来源吗?哪些东西可以更改,但不会影响 $(hostname)?

答案1

这张 duplicity 错误单包含了一些线索
https://bugs.launchpad.net/duplicity/+bug/662334

最简单的方法是使用适当的命令行开关“--allow-source-mismatch”一次,以确保您仍然在同一台机器上。

..ede/duply.net

相关内容