Wednesday, October 26, 2011

Microsoft SharePoint - Batch File Transferring Via Robocopy

!±8± Microsoft SharePoint - Batch File Transferring Via Robocopy

Transferring files in-between SharePoint sites can sometimes be tricky and often times time consuming. When transferring files from WSS to MOSS, there is no inherent method to test for file consistency and version between an existing SharePoint 2003 site and MOSS 2007 site. We will use ROBOCOPY from the Windows Server 2003 Resource Kit Tools to export data from an existing document library to a local share which can then be encrypted and uploaded to send. Follow the steps outlined below:

First you will need to install the Windows Server 2003 Resource Kit Tools to either a Windows XP desktop or the Server 2003 server that the SharePoint 2003 site resides on. Once installed you, will have the ROBOCOPY command line tool available for use. The tools will reside in "C:\Program Files\Windows Resource Kits\Tools" and can be accessed via the command line, or the shortcut to "Command Shell" via the Windows Resource Kit Tools program folder created in the Start Menu.

The next step will be to map an existing SharePoint 2003 Document Library to a Network Drive on the PC or Server that Robocopy is installed on. 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 will need to select a drive letter that is available and not in use, and also type in a Folder name. The folder name will be formatted as follows, for example: http:\example.phase2.com\Docs\DocLibrary, where example.phase2com is the portal name or address used to access the site, Docs is the sub site if the library exists in a sub site, and DocLibrary is the name of the document library we are going to export files from. Once this is mapped, it should show the contents of that document library within the root of that drive.

Finally we will need to export the data from that Document Library to a file folder for storage and subsequent uploading. As an example, the data we will export will be any data that has a modified date of 04/18/2008. You will first need to open the command prompt to use robocopy. Once in the command prompt, you will need to use the robocopy command line tool as follows:

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

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

o z:\* - File source, in this case we would have mapped the document library being export from to the Z:\ network drive on the PC
o d:\fileshare\* - File destination, where the fileshare is on a local drive on the PC
o /S - Copy subdirectories and exclude empty ones
o /Z - Copies in restartable mode
o /COPY:DAT - Copies file Data, Attributes, and Timestamps
o /MAXAGE:20080418 - Copies files with a last modified date of 04-18-2008 and Newer (Excludes files with a last modified date that is before 04-18-2008)

Running the script above will have robocopy read through the mapped drive and copy only those files newer than the date set. Once the export has been completed, the client will then be able to upload those files to us for upload into their MOSS site.

The above must be run for each Document Library that they would like to export and export only newer/updated data. This is because we can only map the Document Library from SharePoint and not the entire site.


Microsoft SharePoint - Batch File Transferring Via Robocopy

!8!# Inverter Generator Right Now Saved Wahl Clippers Attachments Bulk Enfamil Discount

Sunday, October 16, 2011

How to Backup Your Hard Disk Data

!±8± How to Backup Your Hard Disk Data

Implement your own Backup System:

Backing up computer data has become an imperative job for Windows users. This occurs because data safety is very critical and every user must be aware that unpredictable events can happen and that could destroy important data on their PC's or Mac's. Learning how to perform backups is a really 'an absolute must'. Any user, no matter how confident he or she is about their computer, need undertake actions to prevent losing data (images, music, documents, work, email, etc). Hard disks crash, power blackouts occur, accidental deleting of files DOES occur. Viruses or other unplanned events can destroy your work in a split second, but, don't blame these events; blame yourself for not learning backing-up! Now read on - to learn how.

A basic Introduction: Performing a Basic Backup - for those just getting started!

What and How to Backup?

If you were a System Administrator responsible for maintaining critical Network Servers, the answer would be EVERYTHING! However, this would make for some extra hard work and a deep understanding of how computers work. What I outline here is a simple basic backup method. Attempting to backup everything is a very hard challenge for modern Windows. Why? Since Windows 2000 release, Windows (2000, XP, and Vista) has become a true multi-tasking operating system. This means there are some System Files that CANNOT be 'easily' backed-up - or restored. It is like trying to lift yourself out of bed - by your own feet!

Complete software backups are possible with multiple operating systems and more than one hard drive!

To dual boot means that you have more than one operating system installed on the hard drive and that you can decide between the two when you start your computer.

Instead of backing up everything, I will advise you on my own simple back-up method. This involves only those things that are irreplaceable, and that means critical data and personal files. All other things (Operating System and Programs) can be replaced by a clean install. Let us look at each software component in order:

Operating System - If your hard drive fails, you may need to buy a new unit and start with a clean install. Step one is installing the Operating System. You will need two things to do this, the installation media (CD-ROM), and its associated Product Key. Program Software (Office, etc) - This will come with its own CD-ROM, and it's associated registration codes. Make sure you know where they are when it comes time to reinstall. Downloadable software (Skype, Firefox, etc) - Go to the respective Website, and print out the details for the products download page. If you need to reinstall, this will tell you where to go for the download. Shareware - Print out the registration code, along with the Web home page (if applicable) and store it.

Now, if you do some analysis of your own hard drive, you will find that at least 70%, and probably more, of what is on your hard drive falls in one of the above categories. With just a little preparation, you can reinstall all of this above software - if you really need to do so.

Documents: This folder is the main area for your personal data. Normally, all your saved work, pictures, and music are placed in a folder in this directory. This makes it a very easy to do a backup on this section. Address book: Whatever e-mail client you use, you have an address book containing a list of those people you have contacted. Bookmarks and Favorites: You will have saved the addresses of some great Web sites. Netscape saves them as a single file, Internet Explorer uses a single directory containing individual links to each site. E-mail files: All those special messages you sent and received can be backed up. Other: You may have MYOB or QuickBooks that has critical data that cannot be replaced easily.

Create your own Backup with a Batch File: Step one is purchase an external USB hard drive kit. Once installed correctly, a new drive will be shown in "My Computer". Make a note of the drive letter that is allocated to it -eg; E: or F: or G:, etc...

The key to your own automated backup is the use of a batch file. This is a text file (or script file) that contains commands that are executed whenever the file is run. Creating a batch file is quite easy. In Windows, you can create one using Notepad. The thing to remember is that it must be a pure ASCII text file. Using a Word Processor, even WordPad, will not produce a pure text. I recommend using Notepad.

It is often easier to copy your existing work directories to separate hard disk (or a network resource) rather than using other complicated backup software. Several directories can be backed up easily by simply creating a simple a batch file (termed .CMD file in Windows 2000, XP and Vista). This 'backup' file can be saved and you may either:

Run it manually from your Windows Desktop - or Add a 'short-cut' to this file into the Windows [Startup] folder It can be added to the Windows [Scheduled Tasks] folder

Windows Batch files have many other uses - just like this working example. Copy the text box below, and paste it into Notepad. Save the file with a name like 'MyBackup.cmd, and be sure to add the cmd extension, and not the default txt.

This can be used as a working template of your own automatic backup script! Modify it to suit your own needs:

Notes: substitute the 'set drive=E:Backup' for the drive letter of your 2nd hard drive (or other network path).

Copy and Paste this 'Backup Script' to Notepad: (then save as MyBackup.cmd)

@Echo off

:: variables

Set drive=E:Backup

Set BackUpCmd=xcopy /s /e /h /c /d /i /r /k /y

Echo 1. Backing up My Documents...

%BackUpCmd% "%USERPROFILE%My Documents" "%drive%My Documents"

Echo 2. Backing up Favorites...

%BackUpCmd% "%USERPROFILE%Favorites" "%drive%Favorites"

Echo 3. Backing up email and address book (Outlook Express)...

%BackUpCmd% "%USERPROFILE%Application DataMicrosoftAddress Book" "%drive%Address Book"

%BackUpCmd% "%USERPROFILE%Local SettingsApplication DataIdentities" "%drive%Outlook Express"

Echo 4. Backing up email and contacts (MS Outlook)...

%BackUpCmd% "%USERPROFILE%Local SettingsApplication DataMicrosoftOutlook" "%drive%Outlook"

Echo 5. Backing up email and contacts (Incredimail)...

%BackUpCmd% "%USERPROFILE%Local SettingsApplication DataIMIdentities" "%drive%Incredimail"

Echo 6. Backing up email and contacts (Mozilla)...

%BackUpCmd% "%USERPROFILE%Application DataMozillaProfiles" "%drive%Mozilla"

Echo 7. Backing up the Windows Registry...

If not exist ";%drive%Registry" mkdir "%drive%Registry"

If exist "%drive%Registryregbackup.reg" del "%drive%Registryregbackup.reg"

Regedit /e "%drive%Registryregbackup.reg"

Echo Backup Complete! ... Hit any key ...

@Pause

The above Batch Script performs the following:

Backs up My Documents (all your documents, pictures, music, etc) Backs up Favourites (the website addresses you have saved) Backs up Outlook Express email and address book for the current user Backs up Outlook email and contacts for the current user (if found.) Backs up Incredimail email and address book for the current user (if found.) Backs up Mozilla email and address book for the current user (if found) Backs up the Windows Registry data for the current user

This script copies the files to the directory defined in the %drive% variable (E:Backup in the above script). After the first run, the script will incrementally add (over-write) any files that are found to be new - or have been changed. This backup script will copy system and hidden files found.

Understanding the Backup script:

Lines that begin with "::" are simply script comments The "set drive=" is used to indicate your backup Drive and any file path The "set BackUpCmd=" is used for the Xcopy command switches Lines beginning with "echo " are used to output text progress messages
Notes:

You can cancel this running script by a CTRL%2BC or CTRL%2BBreak The Registry backup in the above example saves the current 'User Profile' registry profile state. Saving the entire Windows System Hive Registry is not part of this simplistic and 'essential files' backup approach.
Easily Backup And Search Your Email

A great program that allows you to easily backup many popular Windows email programs, is MailStore Home. This is a free software tool will allow you to backup and archive email from the following email based programs:

Microsoft Outlook Microsoft Outlook Express Microsoft Windows Mail Microsoft Exchange Server Mailboxes Mozilla Thunderbird Mozilla SeaMonkey Webmailer POP3 and IMAP File Import

MailStore Home allows you to backup your email's messages from many common applications into one accessible archive store. MailStore will import your existing email from Outlook, Windows Mail, Outlook Express, Thunderbird, Exchange. Once MailStore has archived your email, you can use this software to easily search through all your messages by keyword. Optionally, you can quickly create a backup CD or DVD within this program. CD and DVD burning is fully integrated within MailStore Home. Archived email messages are stored in a easy MIME-compatible format, and can be easily recovered at any time.

A better tool than using xcopy = RoboCopy:

Robocopy, or "Robust File Copy", is a command-line folder replication tool. It has been freely available as part of the Windows Resource Kit (outside this site), and has now been introduced as a standard component of Windows Vista.

Robocopy is noted for its capabilities above and beyond the built-in Windows COPY and XCOPY (outside this site) commands, including the following:

Ability to tolerate outages and resume copying where it previously left off Ability to correctly copy attributes, owner information, alternate data streams, auditing information, and timestamp's by default Ability to correctly copy NTFS ACL's, (when /COPYALL provided) Persistence by default, with a programmable number of automatic retries if a file cannot be opened A "mirror" mode, which keeps folder contents in sync by optionally deleting files out of the destination that are no longer present in the source Ability to copy a very large numbers of files that would otherwise exceed the resources of the built-in utility A progress indicator on the command line that updates continuously

Robocopy will not copy open files that are found to be 'in use' by other users or applications. The Windows Volume Shadow Copy service is the only Windows sub-system that can open files while they are in use. Robocopy does not implement accessing the Volume Shadow Copy service.

Traditionally Robocopy itself is a command-line tool, however Microsoft Technet has provided a GUI front-end.


How to Backup Your Hard Disk Data

Buying Kettler Rower Great Deals Pressure Wand For Garden Hose Plantronics Handset Lifter Buy Online


Twitter Facebook Flickr RSS



Fran�ais Deutsch Italiano Portugu�s
Espa�ol ??? ??? ?????







Sponsor Links