Microsoft SharePoint – Batch File Transfer Via Robocopy

Moving files between SharePoint pages can sometimes be tricky and often time consuming. When transferring files from WSS to MOSS, there is no native method for testing file compatibility and version between existing SharePoint 2003 site and MOSS 2007 site. We will use ROBOCOPY from Windows Server 2003 Resource Kit Tools to transfer data from existing archives to local sharing that can be encrypted and sent to send. Follow the instructions described below:

First, you need to install Windows Server 2003 Resource Kit Tools to either Windows XP desktop or Server 2003 server on which the SharePoint 2003 site is located. Once set you up, will ROBOCOPY command line tool for use. The tools will reside in "C: Program Files Windows Resource Kits Tools" and can be accessed by the command line or shortcuts "Command Shell" through the Windows Resource Kit Tools application directory created in the Start Menu.

The next step must be to mapping the current SharePoint 2003 archive to a network on the computer or server on which Robocopy is installed. This can be done by going to My Computer, and then selecting Map Network Drive from the Tools File menu. In the window that appears, you must select a drive letter that is available and not in use, and also enter a folder name. The folder name will be the format as follows, for example: http: \ example.phase2.com Docs DocLibrary, where example.phase2com is the webpage or email address used to access the site, Docs is the subfield if the library is located in a sub area And DocLibrary is the name of the archive we are about to export files from. When mapped, it should show the contents of the archive within the root of this drive.

Finally, we need to transfer the data from the archive to a file folder for storage and subsequent updates. For example, the data we will export data that has changed date 04/18/2008. You must first open the command offer to use robocopy. Once in command prompt, you need to use robocopy command line tool as follows:

robocopy z: * d: fileshare * / E / Z / COPY: DAT / MAXAGE: 20080418

In the example above, these are the assumptions and switches used.

o z: * – Files, in this case, we have mapped the archive that is exported to Z: Networks on the computer

o d: fileshare * – File destination, where fileshare is a local drive on the computer

o / S – Copy subfolders and exclude empty ones

o / Z – Backup in a reboot mode

o / COPY: DAT – copies file data, attributes and scheduling

o / MAXAGE: 20080418 – Copies Files Last Modified 04-18-2008 and newer (Excludes files with the last edit date that is before 04-18-2008)

Running the script In the front you will be robocopy Read through the mapped drive and copy only those files that are newer than the date. When export is complete, the customer will then be able to upload those files to us to upload to their MOSS site.

The above must be run for each archive that they will only import and export Newer / updated data. This is because we can only map the archive from SharePoint and not all sites.

Source by Adam M Smithson

Leave a Reply

Your email address will not be published. Required fields are marked *