@@ -32,6 +32,64 @@ Add-SPMTTask -SharePointSourceCredential <PSCredential> -SharePointSourceSiteUrl
32
32
```
33
33
Add-SPMTTask [-JsonDefinition <string>]
34
34
Add-SPMTTask -SharePointSourceCredential <PSCredential> [-JsonDefinition <string>]
35
+ Json defined migration task sample 1:
36
+ Customer scenario:migrate data from File Share or local disk to SPO.
37
+ {
38
+ "SourcePath":"\\LocalOrFileShareDataSource",
39
+ "TargetPath":"https://YourTargetSite",
40
+ "TargetList":"Documents",
41
+ "TargetListRelativePath":"subfolder"
42
+ }
43
+ Json defined migration task sample 2:
44
+ Customer scenario:migrate on-prem site to SPO site.
45
+ {
46
+ "SourcePath":"http://YourOnPremSite",
47
+ "TargetPath":"https://YourTargetSite",
48
+ "Items":{
49
+ "Lists":[
50
+ {
51
+ "SourceList":"sourceListName",
52
+ "TargetList":"targetListName"
53
+ }
54
+ ]
55
+ }
56
+ }
57
+ Json defined migration task sample 3:
58
+ Customer scenario:migrate on-prem sites with subsites to SPO.
59
+ {
60
+ "SourcePath":"http://YourOnPremSite",
61
+ "TargetPath":"https://YourTargetSite",
62
+ "Items":{
63
+ "Lists":[
64
+ {
65
+ "SourceList":"listVersion2",
66
+ "TargetList":"ListVersion2"
67
+ },
68
+ {
69
+ "SourceList":"listVersion3",
70
+ "TargetList":"ListVersion3"
71
+ }
72
+ ],
73
+ "SubSites":[
74
+ {
75
+ "SourceSubSitePath":"subSite",
76
+ "TargetSubSitePath":"targetSubSite",
77
+ "Lists":[
78
+ {
79
+ "SourceList":"testSubListB",
80
+ "TargetList":"targetSubList"
81
+ }
82
+ ]
83
+ }
84
+ ]
85
+ }
86
+ }
87
+ Json defined migration task sample 4:
88
+ Customer scenario:migrate on-prem subsite to SPO subsite.
89
+ {
90
+ "SourcePath":"http://YourOnPremSite/subsite2",
91
+ "TargetPath":"https://YourTargetSite/targetSubSite2"
92
+ }
35
93
```
36
94
37
95
## DESCRIPTION
0 commit comments