refactoring

This commit is contained in:
Chris Lu
2019-04-17 22:04:49 -07:00
parent 3b9446606a
commit 13ad5c1966
8 changed files with 162 additions and 157 deletions

View File

@@ -113,7 +113,7 @@ func runBackup(cmd *Command, args []string) bool {
}
defer v.Close()
if err := v.Follow(volumeServer, grpcDialOption); err != nil {
if err := v.IncrementalBackup(volumeServer, grpcDialOption); err != nil {
fmt.Printf("Error synchronizing volume %d: %v\n", vid, err)
return true
}