My Linux desktop is 4 years old. I originally named it "foo", but 2ish years ago renamed it "bar". I turned on backups for the first time today using Deja Dup, and it used the old computer/hostname from 4 years ago, "foo", as opposed to the current name "bar". I cannot figure out where the old hostname is coming from. I've verified the name is correct in the following locations:
/etc/hosts
/etc/hostname
hostname
hostnamectl
- Settings > About > Device Name
python -c 'import socket; print socket.getfqdn()'
uname -n
I'm at a loss. I'm not sure where the old hostname would still be stored, and how Deja Dup is attempting to discern the computer name for the backup path. Any ideas?!
I was having a similar problem with Deja Dup using my public IPv6 address. I solved it by changing
/etc/hosts
to this:The backups are now getting named properly to
computerName
and no longer changing.Related links:
Backup stops because of claim 'Computer name changed', which is it not true
Deja Dup resolves host name incorrectly, adds ISP hostname