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.
This commit is contained in:
parent
efe4319080
commit
36346548d7
@ -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(),
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user