mirror of https://github.com/restic/restic.git
migrate: Be a bit more verbose
This commit is contained in:
parent
04ded881f6
commit
ff3d2e42f4
|
@ -39,7 +39,7 @@ func checkMigrations(opts MigrateOptions, gopts GlobalOptions, repo restic.Repos
|
||||||
}
|
}
|
||||||
|
|
||||||
if ok {
|
if ok {
|
||||||
Printf(" %v\n", m.Name())
|
Printf(" %v: %v\n", m.Name(), m.Desc())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,10 +59,11 @@ func applyMigrations(opts MigrateOptions, gopts GlobalOptions, repo restic.Repos
|
||||||
}
|
}
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
Warnf("migration %v cannot be applied: check failed\n")
|
Warnf("migration %v cannot be applied: check failed\n", m.Name())
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Printf("applying migration %v...\n", m.Name())
|
||||||
if err = m.Apply(ctx, repo); err != nil {
|
if err = m.Apply(ctx, repo); err != nil {
|
||||||
Warnf("migration %v failed: %v\n", m.Name(), err)
|
Warnf("migration %v failed: %v\n", m.Name(), err)
|
||||||
if firsterr == nil {
|
if firsterr == nil {
|
||||||
|
|
Loading…
Reference in New Issue