문서 라이브러리 파일을 파일 시스템으로 마이그레이션하는 가장 좋은 방법
-
29-09-2020 - |
문제
SharePoint 사이트 모음의 모든 파일을 로컬 파일 시스템으로 마이그레이션하려고 합니다.이 사이트 모음에는 여러 개의 하위 사이트와 문서 라이브러리가 있으며 이를 모두 파일 시스템으로 마이그레이션하려고 합니다.
이 작업을 수행하는 가장 좋은 방법은 무엇입니까?
해결책
SharePoint 문서 라이브러리에서 문서를 다운로드하는 몇 가지 방법이 있습니다.
- 탐색기 보기를 사용하여 문서를 로컬 디렉토리로 끌어다 놓을 수 있습니다.
UNC 매핑을 SharePoint 문서 라이브러리로 이동하고 문서를 파일 공유로 끌어다 놓습니다.자세한 내용은 이 블로그를 참조하세요.이것은 가장 간단한 방법이지만 목록 제한을 초과하는 파일은 표시하지 않습니다.다른 보기에 연결해야 합니다.
URL이 http://mysharepoint.com/Sites/EnterprisePortal인 Enterprise Portal 사이트가 있는 경우
AUNC 경로 \\mysharepoint\\sites\\enterpriseportal을 통해 Windows 탐색기를 통해 이 사이트의 문서 라이브러리에 액세스합니다.
powershell 스크립트를 사용하여 동일한 구조의 라이브러리에서 모든 문서를 다운로드하십시오.powershell 아래에서는 한 번에 하나의 라이브러리에서 다운로드해야 합니다.
```
######################## Start Variables ########################
######################## Varun's Script######################
$destination = "C:\\tools\\Folder"
$webUrl = "<Url of the specific site>"
$listUrl = "<Url of the specific list. This url is complete Url and NOT relative url>"
##############################################################
$web = Get-SPWeb -Identity $webUrl
$list = $web.GetList($listUrl)
function ProcessFolder {
param($folderUrl)
$folder = $web.GetFolder($folderUrl)
foreach ($file in $folder.Files) {
#Ensure destination directory
$destinationfolder = $destination + "/" + $folder.Url
if (!(Test-Path -path $destinationfolder))
{
$dest = New-Item $destinationfolder -type directory
}
#Download file
$binary = $file.OpenBinary()
$stream = New-Object System.IO.FileStream($destinationfolder + "/" + $file.Name), Create
$writer = New-Object System.IO.BinaryWriter($stream)
$writer.write($binary)
$writer.Close()
}
}
#Download root files
ProcessFolder($list.RootFolder.Url)
#Download files in folders
foreach ($folder in $list.Folders) {
ProcessFolder($folder.Url)
}
```
여기에서 스크립트에 대한 전체 지침을 읽으십시오: https://gallery.technet.microsoft.com/office/SharePoint-2010-files-from-11255dc2
유용한 리소스: http://sharepointconnoisseur.blogspot.com/2012/03/options-to-export-sharepoint-2010-files.html
다른 팁
SharePoint용 DMS-Shuttle을 제안할 수 있습니다. 이 도구는 끌어서 놓기로 문서 라이브러리 또는 전체 사이트 모음을 파일 시스템에 다운로드할 수 있습니다.15일 평가판: http://dms-shuttle.com/downloads/이 있습니다. 면책 조항 - 저는 회사에서 일하고 있습니다.
다음은 이를 수행할 수 있는 무료 오픈 소스 도구입니다. https://github.com/GLubomirov/SP_Hauler/releases/tag/1.0
안녕, 조지