Skip to content

Commit 7f149ed

Browse files
authored
Update Add-SPMTTask.md
1 parent 99c3a6a commit 7f149ed

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

spmt/spmt-ps/spmt/Add-SPMTTask.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,64 @@ Add-SPMTTask -SharePointSourceCredential <PSCredential> -SharePointSourceSiteUrl
3232
```
3333
Add-SPMTTask [-JsonDefinition <string>]
3434
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+
}
3593
```
3694

3795
## DESCRIPTION

0 commit comments

Comments
 (0)