Skip to content

Commit 5fe0b02

Browse files
authored
Merge pull request #1312 from getalex/patch-4
Updated handling of relative path references
2 parents 8ca351e + 59de812 commit 5fe0b02

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

samples/features/reporting-services/ssrs-migration-rss/ssrs_migration.rss

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@
1616
' 1) Download ssrs_migration.rss
1717
' 2) Open a command prompt and navigate to the folder containing ssrs_migration.rss, for example c:\rss
1818
' 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
2020
'
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 "/".
2525
'
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).
3232
'
3333
' Example: rs.exe -i ssrs_migration.rss -e Mgmt2010 -s http://server1/reportserver -v ts="http://server2/_vti_bin/reportserver"
3434
' 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
10161016
Dim snkPath As String = SnkFolder
10171017

10181018
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
10201024
End If
10211025

10221026
If snkPath.StartsWith("//") Then

0 commit comments

Comments
 (0)