My backup setup includes a local server (Pi) at home accessible locally or over tailscale when I travel, both via sftp. I’d like to start running a monthly kopia snapshot verify --verify-files-percent=100 --file-parallelism=10 --parallel=10
. Do I need to do this from the computer that is being backed up? Or can I ssh to my server and run verify
locally, nothing to do with the actual computer being backed up?
Yeap. No problem. Kopia is lock free and allows multiple clients to run different operations at the same time.
Thanks. I’ve been playing around with this, and I’m actually unsure how I’d do it not from the local computer.
If I do kopia snapshot list
I see my two local snapshots to my one local repository. I am also connected to my sftp repository, but that’s not listed by snapshot list
. How would I verify the remote if I didn’t want to install kopia on the Pi server?
Thanks,
-k.
check docs:
snapshot list --all
kopia snapshot list --all
does not list the SFTP snapshot. Even when I’m connected and have mounted a folder (so I’m pretty sure the connection is working).
Ok maybe I don’t understand your setup. Where is your repository? on RPi? and you use SFTP to access it?
Yes. Repository is on hard disk plugged into Pi. I access via sftp.
So what does it mean?:
You mean local to RPi?
No, not on the Pi. I have local snapshots and verify working. I was curious if it is possible to verify a remote if I don’t want to install Kopia on the Pi. Verify over sftp.
In general you have to use:
kopia --config /path/to/config snapshot ls
(or whatever other kopia command)
by default kopia is using --config /path/to/repository.config
So you have to connect to another repo using new distinct config file:
kopia repository connect --config /path/to/repo-sftp.config .....
and then:
kopia snapshot list --config /path/to/repo-sftp.config
You can find default configs location in docs.
Got it. Thank you for the explanation.
UI will always look for configs in specific OS dependent directory, but when using cli you can put configs wherever you like.
Sorry to use this topic but it fits my issue as well.
On my repo server I run kopia snapshot list --all
and then get the output as expected:
[snip]
2024-06-18 13:10:02 EDT k554c101d324a11007e09e419b49ae9ec 5.4 MB drwxr-xr-x files:158 dirs:14 (latest-1,hourly-1,daily-1,weekly-1,monthly-1,annual-1)
Then I do the following verify command, but get an error that the snapshot cannot be found:
$ kopia snapshot verify k554c101d324a11007e09e419b49ae9ec
Listing blobs...
10000 blobs...
20000 blobs...
30000 blobs...
Listed 36809 blobs.
ERROR unable to parse snapshot manifest k554c101d324a11007e09e419b49ae9ec: snapshot not found
Finished processing 0 objects.
ERROR found 0 of the 1 requested snapshot IDs to verify
What am I doing wrong?