|
16 | 16 | ' 1) Download ssrs_migration.rss |
17 | 17 | ' 2) Open a command prompt and navigate to the folder containing ssrs_migration.rss, for example c:\rss |
18 | 18 | ' 3) Run the following command (in one line): |
19 | | -' rs.exe -i ssrs_migration.rss -e Mgmt2010 |
| 19 | +' rs.exe -i ssrs_migration.rss -e Mgmt2010 |
20 | 20 | ' |
21 | | -' -s SOURCE_URL 'URL of the source RS server. |
22 | | -' -u domain\username -p password 'Credentials for source server. OPTIONAL, default credentials are used if missing. |
23 | | -' -v st="SITE" 'Specifies SharePoint site, in case source server is in SharePoint integrated mode |
24 | | -' -v f="SOURCEFOLDER" 'Set to "/" for migrating everything, or to something like "/folder/subfolder" for partial migration. Everything within this folder will be copied. OPTIONAL, default is "/". |
| 21 | +' -s SOURCE_URL 'URL of the source RS server. |
| 22 | +' -u domain\username -p password 'Credentials for source server. OPTIONAL, default credentials are used if missing. |
| 23 | +' -v st="SITE" 'Specifies SharePoint site, in case source server is in SharePoint integrated mode |
| 24 | +' -v f="SOURCEFOLDER" 'Set to "/" for migrating everything, or to something like "/folder/subfolder" for partial migration. Everything within this folder will be copied. OPTIONAL, default is "/". |
25 | 25 | ' |
26 | | -' -v ts="TARGET_URL" 'URL of the target RS server" |
27 | | -' -v tu="domain\username" -v tp="password" 'Credentials for target server. OPTIONAL, default credentials are used if missing. |
28 | | -' -v tst="SITE" 'Specifies SharePoint site, in case target server is in SharePoint integrated mode |
29 | | -' -v tf="TARGETFOLDER" 'Set to "/" for migrating into the root level, or to something like "/folder/subfolder" for copying into some folder, which must be already existing. Everything within "SOURCEFOLDER" will be copied into "TARGETFOLDER". OPTIONAL, default is "/". |
30 | | -' -v security= "True/False" 'If set to "False", destination catalog items will inherit security setting according to the settings of the target system. Default is false. |
31 | | -' -v logprefix="PREFIX" 'Prefix name to the output log file. |
| 26 | +' -v ts="TARGET_URL" 'URL of the target RS server" |
| 27 | +' -v tu="domain\username" -v tp="password" 'Credentials for target server. OPTIONAL, default credentials are used if missing. |
| 28 | +' -v tst="SITE" 'Specifies SharePoint site, in case target server is in SharePoint integrated mode |
| 29 | +' -v tf="TARGETFOLDER" 'Set to "/" for migrating into the root level, or to something like "/folder/subfolder" for copying into some folder, which must be already existing. Everything within "SOURCEFOLDER" will be copied into "TARGETFOLDER". OPTIONAL, default is "/". |
| 30 | +' -v security= "True/False" 'If set to "False", destination catalog items will inherit security setting according to the settings of the target system. Default is false. |
| 31 | +' -v logprefix="PREFIX" 'Prefix name to the output log file (default is MigrationLog.csv created from where script is run). |
32 | 32 | ' |
33 | 33 | ' Example: rs.exe -i ssrs_migration.rss -e Mgmt2010 -s http://server1/reportserver -v ts="http://server2/_vti_bin/reportserver" |
34 | 34 | ' Example: rs.exe -i ssrs_migration.rss -e Mgmt2010 -s http://server1/reportserver -u domain1\user1 -p password1 -v f="/SOURCEFOLDER" -v ts="http://server2/_vti_bin/reportserver" -v tu="domain1\user2" -v tp="password2" -v tf="/TARGETFOLDER" |
@@ -1016,7 +1016,11 @@ Function GetSnkPath(srcPath As String) As String |
1016 | 1016 | Dim snkPath As String = SnkFolder |
1017 | 1017 |
|
1018 | 1018 | If Not srcPath = "" Then |
1019 | | - snkPath = snkPath + IIf(SrcFolder = "/", srcPath, srcPath.Remove(0, SrcFolder.Length)) |
| 1019 | + If SrcFolder = SnkFolder Then ' exact relative folder paths assumed between source and target |
| 1020 | + snkPath = srcPath |
| 1021 | + Else |
| 1022 | + snkPath = snkPath + IIf(SrcFolder = "/", srcPath, srcPath.Remove(0, SrcFolder.Length)) |
| 1023 | + End If |
1020 | 1024 | End If |
1021 | 1025 |
|
1022 | 1026 | If snkPath.StartsWith("//") Then |
|
0 commit comments