Windows Server 2012 R2, running restore-dfsrpreservedfiles, getting path, file name or both are too long error
trying recover deleted files located in dfsrprivate folder conflicted files due erroneous change made on primary server in replication group. getting error shown below when try recover files (which listed in manifest file). there workaround/solution getting these files using mechanism? i trying recovery different folder can copy it, running restoretoorigin gives same error.
alternatively, if there's way de-obfuscate files in dfsrprivate directories, might reasonable plan c.
initially tried disk based recovery primary server, there differences. server windows server 2012 r2 64 bit.
any suggestions gratefully received.
ps f:\recovery> restore-dfsrpreservedfiles -path ".\dfsrprivate\conflictanddeletedmanifest.xml" -restoretopath f:\rd
restore-dfsrpreservedfiles : specified path, file name, or both long. qualified file name must
less 260 characters, , directory name must less 248 characters.
@ line:1 char:1
+ restore-dfsrpreservedfiles -path ".\dfsrprivate\conflictanddeletedmanifest.xml" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ categoryinfo : notspecified: (:) [restore-dfsrpreservedfiles], pathtoolongexception
+ fullyqualifiederrorid : system.io.pathtoolongexception,microsoft.distributedfilesystemreplication.commands.resto
redfsrpreservedfilescommand
patrick w. foster
newton, ma
hi,
in windows api (with exceptions discussed in following paragraphs), maximum length path max_path, defined 260 characters. unfortunately powershell not support more 260 char.
if cannot decrease folder , file names, workaround, please refer articles below resolve issue:
.net, powershell path long exception , .net powershell robocopy clone
http://social.technet.microsoft.com/wiki/contents/articles/12179.net-powershell-path-too-long-exception-and-a-net-powershell-robocopy-clone.aspx
if method below cannot resolve issue, workaround, need recover data in conflictanddeleted folder.
dfs replication in windows server 2012 r2: restoring conflicted, deleted , preexisting files windows powershell
http://blogs.technet.com/b/filecab/archive/2013/08/23/dfs-replication-in-windows-server-2012-r2-restoring-conflicted-deleted-and-preexisting-files-with-windows-powershell.aspx
regards,
mandy
Windows Server > File Services and Storage
Comments
Post a Comment