Release 2026.09.27.r001: support array disk rsync backups to mounted USB disks
This commit is contained in:
@@ -23,3 +23,11 @@ func TestParseProgress(t *testing.T) {
|
||||
t.Fatalf("progress = %#v, %v", progress, ok)
|
||||
}
|
||||
}
|
||||
|
||||
func TestArrayDiskMirrorKeepsDiskDirectory(t *testing.T) {
|
||||
job := model.Job{Sources: []model.Source{{Path: "/mnt/disk1"}}, Rsync: model.RsyncOptions{Target: "/mnt/disks/USB Backup", Overwrite: true, Delete: true}}
|
||||
args := Arguments(job)
|
||||
if !slices.Equal(args[len(args)-3:], []string{"--", "/mnt/disk1", "/mnt/disks/USB Backup/"}) || !slices.Contains(args, "--delete-delay") {
|
||||
t.Fatalf("mirror arguments = %v", args)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user