From 36346548d7dfff5f5cf37b0332fe8915efeed59b Mon Sep 17 00:00:00 2001 From: ashmrtn <3891298+ashmrtn@users.noreply.github.com> Date: Tue, 12 Jul 2022 16:12:58 -0700 Subject: [PATCH] Change user/host information in kopia (#328) These fields can be used to lookup snapshots in kopia as they are part of the `Source` struct. They are also stored in the kopia sessions but they should not cause session collisions. Sessions have unique IDs to go along with this information. --- src/internal/kopia/wrapper.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/internal/kopia/wrapper.go b/src/internal/kopia/wrapper.go index 87d83e3e7..100cfabcc 100644 --- a/src/internal/kopia/wrapper.go +++ b/src/internal/kopia/wrapper.go @@ -22,8 +22,8 @@ import ( const ( // TODO(ashmrtnz): These should be some values from upper layer corso, // possibly corresponding to who is making the backup. - kTestHost = "a-test-machine" - kTestUser = "testUser" + corsoHost = "corso-host" + corsoUser = "corso" ) var ( @@ -255,8 +255,8 @@ func (w Wrapper) makeSnapshotWithRoot( details *backup.Details, ) (*BackupStats, error) { si := snapshot.SourceInfo{ - Host: kTestHost, - UserName: kTestUser, + Host: corsoHost, + UserName: corsoUser, // TODO(ashmrtnz): will this be something useful for snapshot lookups later? Path: root.Name(), }