Commit f62be8fa authored by Sebastian Stark's avatar Sebastian Stark

always add --stats to rsync command

  - it is very useful output
parent 665adb1b
......@@ -47,6 +47,7 @@ func createRsyncCommand(sn *snapshot, base *snapshot) *exec.Cmd {
args = append(args, config.RsyncPath)
args = append(args, "--delete")
args = append(args, "-a")
args = append(args, "--stats")
args = append(args, config.RsyncOpts...)
if base != nil {
args = append(args, "--link-dest="+base.FullName())
......
......@@ -21,7 +21,7 @@ func TestCreateRsyncCommand(t *testing.T) {
config.ReadCache()
cmd := createRsyncCommand(testSnapshots[1], testSnapshots[0])
got := cmd.Args
wanted := []string{"/usr/bin/rsync", "--delete", "-a",
wanted := []string{"/usr/bin/rsync", "--delete", "-a", "--stats",
"--link-dest=testdata/.data/1400337531-1400338693-complete",
"/tmp/snaprd_test/",
"testdata/.data/1400534523-0-incomplete"}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment