Hello!
I’m new to this forum. I am currently evaluating various
backup & restore solutions for my equipment, and `restic’
is currently a leading contender. I am testing v0.9.6 on
Linux (Kubuntu & Lubuntu, various versions).
Whilst I’ve run across several potential issues, this is
only about one, one which is particularly bothering me.
First, however, a brief description of my plans/setup:
● Local backup only, from internal-HDD to one or more
removeable units (mainly HDDs); USB3 connection.
● Normal use case is running on/from the internal-HDD;
i.e., the internal-HDD is the root (and usually also
the boot device).
● Manually launched backup & restore.
● Exceptional use case is running on/from an external
unit, which may or may not be the external unit to
which the backup is being made (i.e., the one which
contains the restic-repository). This is one of my
contingency plans for a borked/suspect internal-HDD;
that is, to make an “emergency” backup before doing
much of anything else about the broked/suspect HDD.
● Each external unit with a root has (deliberately) a
different hostname. (This is a contingency in case
of a boot/root on different hardware; I don’t want
any host “spoofing” except by explicit decision.)
The restic v0.9.6 “problem” is this: When rooting on an
external unit (the exceptional use case), both the hostname
and mount point (full pathname) differ from the usual use
case. Hence, whilst the deduplication works, there is a
2nd set of paths/hosts in the repository, despite the
source (the files being backed-up) being the same set as
usual. To be more explicit, in the usual use case, I get
a snapshot of (names invented) with:
Host=my-machine Path=/home/foo/…
But in the exceptional use case, the snapshot is:
Host=other-name Path=/media///home/foo/…
(I am unsure if the is the HDD serial number,
or (more likely) the /home UUID; that is neither here nor
there.)
That does not look very “healthy” for a restore (e.g.)?
Any suggestions on how to deal with this? That is, I
presume/SPECULATE make the exceptional use case look-like
the usual use case; i.e., use the usual use case hostname
and also the usual use case pathnames?
Thanks & cheers!
-blf-