• The output of restic version
.
restic 0.16.2 compiled with go1.21.3 on linux/amd64
• The complete commands that you ran (leading up to the problem or to reproduce the problem).
No problem, just a question
• Any environment variables relevant to those commands (including their values, of course).
I have not set any, not sure how to check
• The complete output of those commands (except any repeated output when obvious it’s not needed for debugging).
N/a
Hi, my use case is the following:
Using restic on an x86 laptop running a Linux distro to backup persoanl data to an external hard disk connected to the laptop with a USB cable - ie pretty simple.
I would like to be able to easily continue using the same restic repo that I have created on the external hard disk under the following situations:
-
My laptop dies and I need to replace it with a different laptop, reinstall the same Linux distro and restic and need to do a full restore of my data from the repo on the external hard disk.
-
I change to a different Linux distro (that supports restic) either on my existing laptop or a replacement laptop, reinstall restic and need to do a full restore of my data from the repo on the external hard disk.
-
I use a different hostname on the new distro or laptop
-
I use a different username on the new distro or laptop
-
I want to move the repo on the external hard disk to a different external hard disk.
-
I change the source path on the laptop to the data
-
I change the destination path to the repo on the external hard disk
In any of the above changes I would just like to be able to continue to use the same restic command syntax and the same repo after the change as I did before the change.
IE I would like to be able to use the same repo regardless of hardware, distro, host name, user name or external hard disk, etc, change. I would like to use restic in the same way that a simple copy command is independent of these factors.
I had posted the issue:
https://forum.restic.net/t/no-parent-snapshot-found-will-read-all-files-issue/8576
Which led me to conclude that I should use the following restic settings:
restic -r --host main ${mydestination} --verbose backup ${mysource}
But as I learn more about restic, I see there are a lot of other options and maybe I should be using other options for my use case.
I am concerned that if I use incorrect options now, then in future, if I do use a different laptop, distro, username, hostname, or external hard disk, etc, I will not be able to access the repo or all snapshots in the same repo.
I am concerned that the repo somehow contains the original path, hardware id, username, hostname, etc and will not restore to one or more of these being changed, unless I set some options that will cause the repo ignore these changes.
Any feedback or help would be appreciated
I am just a home user of Linux and restic and not an IT pro, so please provide answers that can be understood by a beginner.
Thanks ahead of time…