mylittlebackup for SQL Server 2000, 2005 & 2008 Installation Guide



Similar documents
mylittleadmin for MS SQL Server Installation Guide

InfoRouter LDAP Authentication Web Service documentation for inforouter Versions 7.5.x & 8.x

QUANTIFY INSTALLATION GUIDE

Moving the TRITON Reporting Databases

To install Multifront you need to have familiarity with Internet Information Services (IIS), Microsoft.NET Framework and SQL Server 2008.

Implementing Microsoft SQL Server 2008 Exercise Guide. Database by Design

Enterprise Server Setup Guide

Table of Contents. CHAPTER 1 About This Guide CHAPTER 2 Introduction CHAPTER 3 Database Backup and Restoration... 15

Click Studios. Passwordstate. High Availability Installation Instructions

1. CONFIGURING REMOTE ACCESS TO SQL SERVER EXPRESS

Polar Help Desk Installation Guide

Click Studios. Passwordstate. High Availability Installation Instructions

ecopy ShareScan 5.0 SQL installs guide

Upgrade Guide BES12. Version 12.1

FaxCore Ev5 Database Migration Guide :: Microsoft SQL 2008 Edition

FaxCore 2007 Database Migration Guide :: Microsoft SQL 2008 Edition

O Reilly Media, Inc. 3/2/2007

Migrating MSDE to Microsoft SQL 2008 R2 Express

Migrating helpdesk to a new server

SAS 9.3 Foundation for Microsoft Windows

Version 4.61 or Later. Copyright 2013 Interactive Financial Solutions, Inc. All Rights Reserved. ProviderPro Network Administration Guide.

Ascent Capture's MSDE 2000 Backup and Restore Instructions (For Ascent Capture 7.x and 6.x using the default MSDE 2000 database)

Installation Guide v3.0

4.0 SP1 ( ) November P Xerox FreeFlow Core Installation Guide: Windows Server 2008 R2

Installing SQL Express. For CribMaster 9.2 and Later

aims sql server installation guide

Database Maintenance Guide

Backup and Restore FAQ

FrontDesk. (Server Software Installation) Ver

MTA Course: Windows Operating System Fundamentals Topic: Understand backup and recovery methods File name: 10753_WindowsOS_SA_6.


Issue Tracking Anywhere Installation Guide

Deploying WinLIMS Web v7.2 to a Windows 2008 x64 box. Table of Contents. Deploying WinLIMS Web v7.2 to a Windows 2008 x64 box... 1

Online Backup Client 3.9 Manual

NETWRIX WINDOWS SERVER CHANGE REPORTER

Alert Notification of Critical Results (ANCR) Public Domain Deployment Instructions

Version 14.5 Inmagic DB/Text for SQL Administrator s Guide [12/09/13]

Kentico CMS 7.0 Installer documentation

Installation Guide. Sitecore CMS 6.5. Installation guide for administrators and developers. Installation Guide Rev:

Installation Guide Revision 1.0.

ilaw Installation Procedure

Eylean server deployment guide

IISADMPWD. Replacement Tool v1.2. Installation and Configuration Guide. Instructions to Install and Configure IISADMPWD. Web Active Directory, LLC

GoDaddy (CentriqHosting): Data driven Web Application Deployment

Online Backup Client User Manual Windows

Metalogix SharePoint Backup. Advanced Installation Guide. Publication Date: August 24, 2015

SIMS Multi-user Installation Instructions

Windows XP. Windows Vista, Windows 7, Windows 8. 1 GB memory. 25 MB of disk space. Internet connection (e.g. ADSL, SDSL)

Installation and Configuration Guide

CanadianCloudBackup Client User Manual For Microsoft Windows Software Version 4.3.2

NTP Software VFM Administration Web Site for Azure

TIBCO Spotfire Web Player 6.0. Installation and Configuration Manual

Install SQL Server 2014 Express Edition

BlackBerry Enterprise Server Resource Kit

Installing the ASP.NET VETtrak APIs onto IIS 5 or 6

Portions of this product were created using LEADTOOLS LEAD Technologies, Inc. ALL RIGHTS RESERVED.

BUILDER 3.0 Installation Guide with Microsoft SQL Server 2005 Express Edition January 2008

VERITAS Backup Exec 9.1 for Windows Servers Quick Installation Guide

Bitrix Site Manager ASP.NET. Installation Guide

RoomWizard Synchronization Software Manual Installation Instructions

VP-ASP Shopping Cart Quick Start (Free Version) Guide Version 6.50 March

HOW TO SILENTLY INSTALL CLOUD LINK REMOTELY WITHOUT SUPERVISION

WhatsUp Gold v16.3 Installation and Configuration Guide

1 of 10 1/31/2014 4:08 PM

STIDistrict Server Replacement

Installation & Configuration Guide

Video Administration Backup and Restore Procedures

Click Studios. Passwordstate. Installation Instructions

Ekran System Help File

AVALANCHE MC 5.3 AND DATABASE MANAGEMENT SYSTEMS

Setting up an MS SQL Server for IGSS

Burst Technology bt-loganalyzer SE

Secret Server Installation Windows Server 2008 R2

Perceptive Connector for Microsoft Dynamics AX

Online Backup Client User Manual

Desktop Surveillance Help

Prerequisites Guide. Version 4.0, Rev. 1

Sitecore Security Hardening Guide

USER GUIDE Deploying Your Application to WinHost

Acronis SharePoint Explorer. User Guide

System Administration Training Guide. S100 Installation and Site Management

Password Reset Server Installation Guide Windows 8 / 8.1 Windows Server 2012 / R2

Installation Manual Version 8.5 (w/sql Server 2005)

ilaw Server Migration Guide

How To Use Gfi Mailarchiver On A Pc Or Macbook With Gfi From A Windows 7.5 (Windows 7) On A Microsoft Mail Server On A Gfi Server On An Ipod Or Gfi.Org (

Advantage for Windows Copyright 2012 by The Advantage Software Company, Inc. All rights reserved. Client Portal blue Installation Guide v1.

Sitecore Ecommerce Enterprise Edition Installation Guide Installation guide for administrators and developers

4.0 SP2 ( ) May P Xerox FreeFlow Core Installation Guide: Windows Server 2008 R2

Setup and configuration for Intelicode. SQL Server Express

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

PaperStream Connect. Setup Guide. Version Copyright Fujitsu

Quick Start Guide. User Manual. 1 March 2012

Ingenious Testcraft Technical Documentation Installation Guide

WhatsUp Gold v16.1 Installation and Configuration Guide

Immotec Systems, Inc. SQL Server 2005 Installation Document

Introduction. Configurations. Installation. Vault Manufacturing Server

Server Installation: ServerTools

System Area Management Software Tool Tip: Integrating into NetIQ AppManager

Installing LearningBay Enterprise Part 2

Transcription:

mylittlebackup for SQL Server 2000, 2005 & 2008 Installation Guide version 1.5 1/29

CONTENT OVERVIEW... 3 CONFIGURATION REQUIREMENTS... 3 INSTALLATION AND CONFIGURATION... 3 CONFIG.XML... 4 <SQLSERVERS>... 4 <BACKUP>... 6 <RESTORE>... 8 <CHECK>... 12 <LOG>... 12 WEB.CONFIG...14 4 TYPICAL CONFIGURATIONS...15 CONFIG. #1: IIS, SQL SERVER, STORAGE ON THE SAME MACHINE... 15 CONFIG. #2: IIS AND STORAGE ON MACHINE A, SQL SERVER ON MACHINE B... 17 CONFIG. #3: IIS ON MACHINE A, SQL SERVER ON MACHINE B, STORAGE ON MACHINE C... 20 CONFIG. #4: IIS ON MACHINE A, SQL SERVER AND STORAGE ON MACHINE B... 24 ADDING A NEW INTERFACE LANGUAGE...28 ENABLING/DISABLING FEATURES...29 2/29

OVERVIEW mylittlebackup for SQL Server 2000, 2005 & 2008 is a web-based tool specially designed and developed for shared hosting companies. It allows web hosting companies to offer their customers an easy, secure and quick solution to backup/restore SQL Server 2000, 2005 and 2008 databases. CONFIGURATION REQUIREMENTS mylittlebackup for SQL Server requires the following configuration: Microsoft Windows 2000, 2003, 2008 Microsoft IIS 5, 6, 7 Microsoft SQL Server 2000, 2005 & 2008 (successfully tested with Microsoft SQL Server 7.0) Microsoft.NET framework 2.0 A web browser that supports XHTML and CSS2 INSTALLATION AND CONFIGURATION 1. Open the.zip file and extract it to a folder within the scope of your site. Be sure to extract all the sub-folders. 2. Copy your license file (license.config) in the root folder (installation folder) of mylittlebackup 3. Setup your installation folder as a web application (you can do this through your IIS control panel or your web-host control panel). If you do not have the rights to setup your installation folder as a web application, then you must copy the whole content of the /bin folder into the /bin folder of your website. 4. Edit the config.xml and the web.config files (both located at the root of the application) and follow the instructions from the next sections. 5. You can now access mylittlebackup at the following address http://www.yourserver.com/yourinstallfolder/ Note: if you re running mylittlebackup in Medium Trust, then you need to add telerik r.a.d. upload to the Global Assembly Cache (GAC): 1. Go to Start -> Settings -> Control Panel -> Administrative Tools -> Microsoft.NET Framework 2.0 Configuration 3/29

2. Expand the nodes and locate Assembly cache 3. Right-click on it and select Add: 4. Browse to the mylittlebackup bin directory and ctrl-highlight RadUpload.Net2.dll 5. Click Open (http://www.telerik.com/help/radupload/v2_net2/installaddtoglobalass emblycache.html) CONFIG.XML Config.xml file is divided in several nodes. The nodes that you need to configure are described below. <sqlservers> In this node, you will define connection attributes to all your SQL Servers. You can enter as many SQL Servers as it is allowed by your license. Each SQL Server is defined by its own node: <sqlserver address= IP Address Instance name name= name as it appears in the connection page sysadminconnection= true false sysadminconnectionid= unique id backupfolder= backup folder full path (can be UNC path) uploadfolder= upload folder full path (can be UNC path) compatibilitylevel= 80 90 100 backupcompression= true false (with SQL Server 2008 only) address: Enter the instance name or the IP address of the SQL Server. name: Enter the name of the SQL Server as you want it to appear in the connection page. sysadminconnection: true if you want to use a SysAdmin connection to perform backup/restore, else false. If you set this value to true, then you must also define the sysadminconnectionid attribute and the SysAdmin connection section in the web.config file. 4/29

sysadminconnectionid: a unique integer to indentify the SysAdmin connection used for this SQL Server. backupfolder: specify the full path to the folder where backup files will be created for this specific SQL Server. Both SQL Server and IIS must be able to access this folder and must have read/write permissions. It means that you need to use UNC path if IIS and SQL Server are not on the same box. Note that ASPNET user must have read permission on this folder. This value overwrites backup\defaultfolder value. uploadfolder: specify the full path to the folder where you will upload the backup files you want to use for restore for this specific SQL Server. Both SQL Server and IIS must be able to access this folder and must have read/write permissions. It means that you need to use UNC path if IIS and SQL Server are not on the same box. This value overwrites restore\defaultfolder value. compatibilitylevel: 80 for SQL Server 2000, 90 for SQL Server 2005. This attribute is important when you use mylittlebackup to backup a SQL Server 2000 database and to restore it on a SQL Server 2005 database. This value overwrites backup\dbproperties\compatibilitylevel value. backupcompression: true if you want to use SQL Server 2008 backup compression feature, else false. Note this parameter is ignored with SQL Server 2000 and 2005. Examples: <sqlservers> <sqlserver address= P27SRV\SQL2K5 name= Prod. SQL Server 2005 sysadminconnection= true sysadminconnectionid= 1 backupfolder= \\SQL2K5\dbbackup\ uploadfolder= \\SQL2K5\dbupload\ 5/29

compatibilitylevel= 90 <sqlserver address= P27SRV/SQL2K name= SQL Server 2000 sysadminconnection= false backupfolder= \\P27SRV\dbbackup\ uploadfolder= \\P27SRV\dbupload\ compatibilitylevel= 80 <sqlserver address= P27SRV\SQL2K8 name= Prod. SQL Server 2008 sysadminconnection= true sysadminconnectionid= 2 backupfolder= \\SQL2K8\dbbackup\ uploadfolder= \\SQL2K8\dbupload\ compatibilitylevel= 100 backupcompression= true <sqlserver address= 192.0.0.10 name= SQL Server 7.0 sysadminconnection= true sysadminconnectionid= 3 compatibilitylevel= 70 </sqlservers> <backup> In this node you will define where the backup files will be created and the authorization rules. <backup defaultfolder= backup folder full path (can be UNC path) maxbackupcount= max number of allowed backup files per database > <authorization dbrole= comma separated list of roles 6/29

<authorization dbrole= comma separated list of roles </backup> defaultfolder: specify the full path to the folder where backup files will be created. Both SQL Server and IIS must be able to access this folder and must have read/write permissions. It means that you need to use UNC path if IIS and SQL Server are not on the same box. Note that ASPNET user must have read permission on this folder. This value is used when sqlservers\server\ backupfolder is not defined, otherwiser it is overwritten. maxbackupcount: specify the maximum number of backup files per database the user can store. When there are more files, the user must use the Manage backup files tool to delete old files. : This node contains all the rules that define backup authorization. <authorization>: Each authorization node defines a rule. dbrole: enter a comma separated list with all the database roles the connected user must be member of in order to be allowed to perform backup. When authorization rules have been defined, it is possible to let all kind of users to perform backup. Thus, sysadminconnection attribute must have been set to true for the current SQL Server so that the sysadmin connection will be used instead of the current user one. Examples: <backup defaultfolder= \\Server\dbbackup\ maxbackupcount= 1 > <authorization dbrole= db_owner <authorization dbrole= db_backupoperator <authorization dbrole= db_datareader, db_datawriter 7/29

</backup> In this sample, members of db_owner and db_backupoperator database roles will be allowed to perform backup. Members of both db_datareader and db_datawriter database roles will also be allowed to perform backup. <restore> In this node, you will define where the backup files will be uploaded before restore, authorization rules and several properties to be checked after the restore, including user mapping. <restore defaultfolder= upload folder full path (can be UNC path) maxuploadcount= max number of allowed uploaded files per database checkmaxsize= true false disclaimer= true false > <authorization dbrole= comma separated list of roles <authorization dbrole= comma separated list of roles <usermapping autofix= true false mappingmode= 0 1 2 3 mappinglogin= login value restoreoriginalusers= true false newuserdbrole= comma separated list of roles <dbproperties> <compatibilitylevel default= 80 90 <isreadonly default= true false <isautocloseon default= true false <isautoshrinkon default= true false <recoverymodel default= SIMPLE BULK_LOGGED FULL </dbproperties> <customsql enable= true false 8/29

</restore> command= customized T-SQL command, %dbname% variable can be used defaultfolder: specify the full path to the folder where you will upload the backup files you want to use for restore. Both SQL Server and IIS must be able to access this folder and must have read/write permissions. It means that you need to use UNC path if IIS and SQL Server are not on the same box. This value is used when sqlservers\server\ uploadfolder is not defined, otherwiser it is overwritten. maxuploadcount: specify the maximum number of uploaded files per database the user can store. When there are more files, the user must use the Manage backup files tool to delete old files. checkmaxsize: when set to true, it is not possible to restore a backup file which would exceed database file size limit. For instance, if your plan offers a 100 Mb database, you must set this attribute to true so that your customers are not able to restore from their backup files if the restored database should exceed this limit. disclaimer: when set to true, a disclaimer is displayed before starting the restore process. Disclaimer text can be set by editing the disclaimer.txt file in the installation folder. : This node contains all the rules that define restore authorization. <authorization>: Each authorization node defines a rule. dbrole: enter a comma separated list with all the database roles the connected user must be member of in order to be allowed to perform restore. <usermapping>: This node contains information about how user mapping will be perform if ever the restored database contains orphan users. 9/29

autofix: true if you want to auto-fix orphan users when possible, else false. mappingmode: numeric value which defined the mapping mode to be used: 0: no mapping. 1: orphan users are mapped to sa. (not recommended) 2: orphan users are mapped to the current user login. (recommended) 3: orphan users are mapped to the login specified by the mappinglogin attribute mappinglogin: the login to be used to map orphan users when mappingmode is set to 3 restoreoriginalusers: when set to true, original users are restored after the the restore process. This option avoids that users defined by the webhoster disappear because of a restore process. newuserdbrole: enter a comma separated list with the database roles that will be assigned to new users (i.e. the users that did not exist in the original database). <dbproperties>: This nodes contains the database properties to check and the values to use. compatibilitylevel: 80 for SQL Server 2000, 90 for SQL Server 2005. This attribute is important when you use mylittlebackup to backup a SQL Server 2000 database and to restore it on a SQL Server 2005 database. This value is used when sqlservers\server\ compatibilitylevel is not defined, otherwiser it is overwritten. isreadonly: true if you want to set the database to readonly, else false (highly recommended) isautocloseon: true if you want the database to auto-close, else false (highly recommended) 10/29

isautoshrinkon: true if you want the database to auto-shrink, else false. recoverymodel: the recovery model to be applied to the database after the restore. Can be SIMPLE, BULK_LOGGED or FULL. If this value is not specified, then the recovery model used before the restore will be applied. <customsql>: This node offers the possibility to launch a custom T- SQL command just after the restore process. enable: true if the T-SQL command specified must be executed after the restore process, else false. command: the T-SQL command to be executed just after the restore. This command can use the %dbname% variable. Example: <restore defaultfolder= \\Server\dbupload\ maxuploadcount= 1 checkmaxsize= true > <authorization dbrole= db_owner <authorization dbrole= db_datareader, db_datawriter, db_ddladmin <usermapping autofix= true mappingmode= 3 mappinglogin= orphanuser <dbproperties> <compatibilitylevel default= 90 <isreadonly default= false <isautocloseon default= false <isautoshrinkon default= false <recoverymodel default= SIMPLE </dbproperties> <customsql 11/29

enable= true command= EXEC sp_myproc %dbname% </restore> <check> In this node, you will define authorization rules to use the Check database tool. <check> <authorization dbrole= comma separated list of roles <authorization dbrole= comma separated list of roles </check> : This node contains all the rules that define authorization to use the Check database tool. <authorization>: Each authorization node defines a rule. dbrole: enter a comma separated list with all the database roles the connected user must be member of in order to be allowed to use the Check database tool. Example: <check> <authorization dbrole="db_owner" <authorization dbrole="db_datareader, db_datawriter, db_ddladmin" </check> <log> In this node, you will define if you want to write logs. <log enable= true false 12/29

folder= log folder full path (can be UNC path) enable: true if you want to write log files, else false. folder: specify the full path to the folder where log files will be written when enable has been set to true. IIS must be able to access this folder and must have read/write permissions. mylittlebackup writes one log file per day. Example: <log enable= true folder= d:\mylittlebackup\log\ 13/29

WEB.CONFIG If you choose to SysAdmin connection to perform backup/restore (highly recommended), then you will need to add a few lines to the web.config file: in the <appsettings> node, you will need to add 2 lines per SQL Server. <add key= SysAdminLogin_xx value= login <add key= SysAdminPassword_xx value= password SysAdminLogin_xx: xx is the numeric value defined in the sysadminconnectionid attribute (see config.xml / sqlservers paragraph). Set this value to the sysadmin login you want to use. SysAdminPassword_XX: xx is the numeric value defined in the sysadminconnectionid attribute (see config.xml / sqlservers paragraph). Set this value to the password of the sysadmin login previously defined. Examples: <appsettings> <add key="version" value="1.5" <add key="release" value="0039" <add key="build" value="3162" <!-- Sysadmin connection value //--> <add key="sysadminlogin_1" value="sa" <add key="sysadminpassword_1" value="x23ypox" <add key="sysadminlogin_3" value="sa" <add key="sysadminpassword_3" value="po85fc8dgc" </appsettings> Note: If you chose to use SysAdmin connection, the SysAdmin connection is checked each time a user logs in mylittlebackup. If this check fails, then an error message appears. 14/29

4 TYPICAL CONFIGURATIONS We recommend using configuration #4 when possible. Config. #1: IIS, SQL Server, Storage on the same machine config. #1 This is the easiest environment you can have. IIS and SQL Server are located on the same machine. Backup files will be stored and uploaded on this same machine. You do not need to use UNC to define backup\defaultfolder and restore\defaultfolder attributes. You do not need to use impersonation. You must give read/write permissions to ASPNET user for the backup and upload folders. Your SQL Server services can log on as Local System Account. Your config.xml file will look like <mylittlebackup> <sqlservers> <sqlserver address="srvname\instancename" name="sql2005" sysadminconnection="true" sysadminconnectionid="1" 15/29

</sqlservers> <backup defaultfolder="c:\dbbackup\" maxbackupcount="1" > <authorization dbrole="db_owner" <authorization dbrole="db_backupoperator" <authorization dbrole="db_datareader, db_datawriter" </backup> <restore defaultfolder="c:\dbupload\" maxuploadcount="1" checkmaxsize="true" > <authorization dbrole="db_owner" <authorization dbrole="db_datareader,db_datawriter,db_ddladmin" <usermapping autofix="true" mappingmode="2" <dbproperties> <compatibilitylevel default="90" <isreadonly default="false" <isautocloseon default="false" <isautoshrinkon default="false" </dbproperties> </restore> <check> <authorization dbrole="db_owner" <authorization dbrole="db_datareader, db_datawriter" </check> <log enable="true" 16/29

folder="c:\dblog\" [ snip ] </mylittlebackup> Config. #2: IIS and Storage on machine A, SQL Server on machine B config. #2 As you have 2 different boxes, you need to use UNC to define backup\defaultfolder and restore\defaultfolder attributes. As IIS and File Server are located on the same machine, you do not need to use impersonation. You must give read/write permissions to ASPNET user for the backup and upload folders. You must allow SQL Server to access the backup and upload folders. SQL Server needs to access the file server. The default set of NT credentials used by MSSQLSERVER is the Localsystem account. The Localsystem account has no access to shares on the network as it isn't an authenticated network account. Therefore SQL Server running under this account cannot backup/restore to/from a normal network share. You will then need to use another account to run SQL Server. Step 1. Create a new local user account on machine B (SQL Server) 17/29

Step 2. Launch your SQL Server Configuration manager and change the account used by SQL Server from the local system account to this newly created account. (see below) Step 3. Create a new local user account on machine A (IIS, File Server) with exactly the same name and password than the one created on machine B. Step 4. Share the backup and upload folders on machine A. Step 5. Give read/write permissions to this newly created user on the backup and upload folders. Another solution consists to enable null session shares. Please follow the instructions from this Microsoft technote if you prefer this solution: http://support.microsoft.com/kb/289655/en-us. Finally your config.xml file will look like <mylittlebackup> <sqlservers> <sqlserver address="machineb\instancename" 18/29

name="sql2005" sysadminconnection="true" sysadminconnectionid="1" </sqlservers> <backup defaultfolder="\\machinea\dbbackup\" maxbackupcount="1" > <authorization dbrole="db_owner" <authorization dbrole="db_backupoperator" <authorization dbrole="db_datareader, db_datawriter" </backup> <restore defaultfolder="\\machinea\dbupload\" maxuploadcount="1" checkmaxsize="true" > <authorization dbrole="db_owner" <authorization dbrole="db_datareader,db_datawriter,db_ddladmin" <usermapping autofix="true" mappingmode="2" <dbproperties> <compatibilitylevel default="90" <isreadonly default="false" <isautocloseon default="false" <isautoshrinkon default="false" </dbproperties> </restore> <check> <authorization dbrole="db_owner" <authorization dbrole="db_datareader, db_datawriter" </check> 19/29

<log enable="true" folder="c:\dblog\" [ snip ] </mylittlebackup> Config. #3: IIS on machine A, SQL Server on machine B, Storage on machine C config. #3 This environment requires more configurations. As you have 3 different boxes, you need to use UNC to define backup\defaultfolder and restore\defaultfolder attributes. As IIS and File Server are located on 2 different machines, you need to use impersonation. You must allow SQL Server to access the backup and upload folders. First of all, we must check that IIS (located on machine A) will be able to access machine C and that the default asp.net user 20/29

(ASPNET) will be able to read/write on the backup and upload folders. A lot of web-hosting companies have already configured IIS and their file servers for this behavior. If you do not already have this behavior, then you need to use impersonation. You need to add this line to the web.config file <identity impersonate="true" username="username" password="password" Step 1. Create a new local user account on machine A (IIS) Step 2. Create a local user account on machine C (File server) with exactly the same name and password than the one created on machine A (IIS). Step 3. If you are using Windows XP or Windows.NET Server 2003 you don t need do anything. If you have Windows 2000, go to Local Security Setting and browse to User Rights assignment and locate Act as part of Operating System policy. Double click and add the newly created account. You also need to set permission for impersonated user for full control on C:\winnt\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files. Step 4. Share the backup and upload folders on machine C. Step 5. Give read/write permissions to this newly created user on the backup and upload folders. Step 6. You may need to restart IIS services. SQL Server needs to access the file server. The default set of NT credentials used by MSSQLSERVER is the Localsystem account. The Localsystem account has no access to shares on the network as it isn't an authenticated network account. Therefore SQL Server running under this account cannot backup/restore to/from a normal network share. You will then need to use another account to run SQL Server. Step 1. Create a new local user account on machine B (SQL Server) Step 2. Launch your SQL Server Configuration manager and change the account used by SQL Server from the local system account to this newly created account. (see below) 21/29

Step 3. Create a new local user account on machine C (File Server) with exactly the same name and password than the one created on machine B (SQL Server). Step 4. Give read/write permissions to this newly created user on the backup and upload folders. Another solution consists to enable null session shares. Please follow the instructions from this Microsoft technote if you prefer this solution: http://support.microsoft.com/kb/289655/en-us. Finally your config.xml file will look like <mylittlebackup> <sqlservers> <sqlserver address="machineb\instancename" name="sql2005" sysadminconnection="true" sysadminconnectionid="1" </sqlservers> 22/29

<backup backupfolder="\\machinec\dbbackup\" maxbackupcount="1" > <authorization dbrole="db_owner" <authorization dbrole="db_backupoperator" <authorization dbrole="db_datareader, db_datawriter" </backup> <restore uploadfolder="\\machinec\dbupload\" maxuploadcount="1" checkmaxsize="true" > <authorization dbrole="db_owner" <authorization dbrole="db_datareader,db_datawriter,db_ddladmin" <usermapping autofix="true" mappingmode="2" <dbproperties> <compatibilitylevel default="90" <isreadonly default="false" <isautocloseon default="false" <isautoshrinkon default="false" </dbproperties> </restore> <check> <authorization dbrole="db_owner" <authorization dbrole="db_datareader, db_datawriter" </check> <log enable="true" folder="c:\dblog\" 23/29

[ snip ] </mylittlebackup> Config. #4: IIS on machine A, SQL Server and Storage on machine B This is the configuration we recommend. config. #4 Configuration will behave the same when you use several SQL Servers. config. #4bis 24/29

As you have 2 different boxes, you need to use UNC to define backup\defaultfolder and restore\defaultfolder attributes. As IIS and File Server are located on 2 different machines, you need to use impersonation. SQL Server and File Server are on the same machine, thus your SQL Server services can log on as Local System Account. There is no need to enable Null Session Share. First of all, we must check that IIS (located on machine A) will be able to access machine B and that the default asp.net user (ASPNET) will be able to read/write on the backup and upload folders. A lot of web-hosting companies have already configured IIS and their file servers for this behavior. If you do not already have this behavior, then you need to use impersonation. You need to add this line to the web.config file <identity impersonate="true" username="username" password="password" Step 1. Create a new local user account on machine A (IIS) Step 2. Create a local user account on machine B (File server) with exactly the same name and password than the one created on machine A (IIS). Step 3. If you are using Windows XP or Windows.NET Server 2003 you don t need do anything. If you have Windows 2000, go to Local Security Setting and browse to User Rights assignment and locate Act as part of Operating System policy. Double click and add the newly created account. You also need to set permission for impersonated user for full control on C:\winnt\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files. Step 4. Share the backup and upload folders on machine B. Step 5. Give read/write permissions to this newly created user on the backup and upload folders. Step 6. You may need to restart IIS services. Of course you need to repeat this operation for each file servers (config. #4bis). 25/29

As we can have several SQL Servers/File Servers, we will define backupfolder and uploadfolder attributes for each server using UNC. Finally your config.xml file will look like <mylittlebackup> <sqlservers> <sqlserver address="machineb1\instancename" name="sql2005" sysadminconnection="true" sysadminconnectionid="1" backupfolder="\\machineb1\dbbackup" uploadfolder="\\machineb1\dbupload" <sqlserver address="machineb2\instancename" name="sql2000" sysadminconnection="true" sysadminconnectionid="2" backupfolder="\\machineb2\dbbackup" uploadfolder="\\machineb2\dbupload" compatibilitylevel="80" </sqlservers> <backup maxbackupcount="1" > <authorization dbrole="db_owner" <authorization dbrole="db_backupoperator" <authorization dbrole="db_datareader, db_datawriter" </backup> <restore maxuploadcount="1" checkmaxsize="true" > <authorization dbrole="db_owner" 26/29

<authorization dbrole="db_datareader,db_datawriter,db_ddladmin" <usermapping autofix="true" mappingmode="2" <dbproperties> <compatibilitylevel default="90" <isreadonly default="false" <isautocloseon default="false" <isautoshrinkon default="false" </dbproperties> </restore> <check> <authorization dbrole="db_owner" <authorization dbrole="db_datareader, db_datawriter" </check> <log enable="true" folder="c:\dblog\" [ snip ] </mylittlebackup> 27/29

ADDING A NEW INTERFACE LANGUAGE mylittlebackup for SQL Server 2000 and 2005 can support multilanguage. Please follow the instructions below to localize mylittlebackup in your own language. 1. Edit the config.xml file located at the root folder of mylittleadmin. Add a new language node to the <languages> node with your language culture and name. For instance: <languages> <language culture="en-us" name="english" <language culture="fr-fr" name="french" <language culture="ja-jp" name="japanese"... </languages> 2. Create a new folder in the /bin folder of mylittleadmin. Name it with the culture name of your language. For instance, if you want to add a Japanese translation, then you create a new ja-jp folder. 3. Copy files strings.resources and compileres.bat located in the /bin folder of mylittleadmin in your newly created folder, and rename strings.resources file into strings.ressourcename.resources. For instance : strings.ja-jp.resources 4. Edit this resource file with a resource editor application. You can download and use the free Resourcer for.net by Lutz Roeder: http://www.aisto.com/roeder/dotnet/ 5. Now you must translate all the entries from your resource file in your own language. 6. At last, you just need to compile the resource file in a DLL. To do that, you need the Assembly Linker application to be installed on your computer. You can find this application in the Framework SDK (you can download it here: http://msdn.microsoft.com/netframework/downloads/framework1_1/ ) 7. Edit the compileres.bat file and change the line to (this sample is for ja-jp culture) C:\WINNT\Microsoft.NET\Framework\v1.1.4322\al.exe /embed:strings.ja-jp.resources,strings.ja-jp.resources /out:strings.resources.dll /c:ja-jp 28/29

8. Launch the compileres.bat batch file by double-clicking on it. You should now have a strings.resources.dll located in your language folder. 9. Launch mylittlebackup and choose your language in the Preferences section ENABLING/DISABLING FEATURES Each feature of mylittlebackup can be enabled/disabled. Please follow the instructions below: 1. Feature settings are located in the xml/profile/default.xml file. Edit the xml/profile/default.xml. 2. Set to true or false the feature you want to enable or disable. 3. Relaunch mylittlebackup <profile id="default"> <tools> <backup display="true" <restore display="true" <check display="true" <manage display="true" </tools> </profile> Note: If you also want to remove a link to a tool from the left navigation sidebar, then you need to edit file xml/navbardata.xml and delete the specified node. 29/29