John's profile非完全过滤垃圾PhotosBlogListsMore Tools Help

    MOSS备份

    备份!备份!还是备份!
    MOSS自动备份,根据当前时间生成不同的文件名:

    "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\bin\stsadm" -o backup -url http://moss:80 -filename D:\moss_backup\%date:~0,10%_moss.bak -overwrite

    \%date:~0,10% 取当前日期。

    将以上命令保存在一个cmd文件中,然后利用计划任务自动运行。

     

    MOSS的备份与迁移
    在这里浅谈一下我的网站集迁移经历。我想做的东东很简单,将一个已经开发好的解决方案,或者说是环境,迁移到一台虚机上,作演示用。

    首先当然是用SharePoint3.0管理中心内置的备份与还原工具。备份界面是很人性化,备份速度也比较快,只是备份出来的文件夹根目录下会出现spbrtoc.xml的备份日志文件,或者说是备份配置文件。将整个文件夹与该配置文件拷贝至新环境中,执行备份还原,结果失败。新环境假假地备份一次,将备份文件完全替换成在原环境备份出来的文件。然后执行备份还原,还是失败。

    用SPD的备份网站功能,备份后拷贝至新环境的SPD还原,也不行。看来,无论是MOSS管理中心自带的备份还原工具,还是SPD的还原工具,都是只提供能还原自己环境下备份的文件。没有迁移的作用。我们看看MOSS的备份还原功能有什么弊端:

    备份还原功能不能做什么?

    不能备份和还原以下内容
    Custom solutions deployed(发布到WSS站点的自定义的应用程序)
    lternate access mapping
    Internet Information Services metabase
    可以备份但不能还原以下内容
    Sharpoint配置数据库SharePoint_Config
    管理中心IIS站点和应用程序
    管理中心数据库SharePoint_AdminContent
    然后看到十一的一篇文章,主张用数据库的SQL Server Tools进行站点备份、还原与迁移。大致的步骤下面简单描述。

    在原服务器场备份除配置数据库SharePoint_Config和管理中心数据库SharePoint_AdminContent外的所有数据库
    部署好新的服务器场

        · 在目标机上安装Office SharePoint Server 2007

        ·启动三个服务:Office SharePoint Server 搜索、Windows SharePoint Services 帮助搜索、Excel Calculation Services

        ·不要创建SSP和应用程序

    3. 在SQL Server Enterprise Manager中,还原所有之前备份的SharePoint相关的数据库,除了配置数据库SharePoint_Config和管理中心数据库SharePoint_AdminContent

    4. 通过管理中心新建立web应用程序,并删除所关联的内容数据库

    ·在管理中心创建3个应用程序,一个用于SSP、一个用于个人站点、一个用于门户站点,如果你需要更多的站点,则建立多个相应的应用程序。

    ·在"SharePoint Web 应用程序管理"点击 "内容数据库".

    ·选择你需要修改的web 应用程序

    ·选择内容数据库

    ·选择"脱机"状态和"删除内容数据库"

    ·点击"确定"。

    5. 还原新站点、SSP的内容数据库

    ·在"管理内容数据库"中将我们备份好的内容数据库添加到相应的web应用程序里

    ·添加内容数据库,数据库名称填写我们要还原的数据库名称

    ·点击"确定"

    6. 还原SSP

    ·选择"创建或配置此服务器场的共享服务"

    ·选择"还原SSP"

    ·添加相关的内容

    SSP 名称:SharedServices3

    SSP 管理网站需要 Web 应用程序:选择SSP web程序

    "我的网站"需要 Web 应用程序 :同样选择SSP web程序

    SSP 服务凭据:填写域管理员账户

    SSP 数据库:SharedServices1 _DB

    搜索数据库:SharedServices1_Search_DB

    ·设置所还原的SSP为服务器场的默认SSP

    ·在搜索设置页启动SSP的爬网功能

    通过,以上操作就实现了服务器场间站点的迁移。

    但是在实际的应用上,发现除了步骤复杂外,更大程度上还原成功率很低,因为做这个工作的人要对SQL Server熟悉,要对MOSS熟悉,要对SSP熟悉,要知道哪个数据库对应着哪个站点,并且在SSP的还原上面要耗费大量的时间,最重要的是还原成功率不高,整天访问首页都会有不知名的错误,估计是配置数据库与内容数据库冲突导致。

    之后通过搜索,找到了一篇董章河介绍的MOSS站点备份还原方式,是通过STSADM 命令的方式。具体操作如下:

    1.先我们使用STSADM.exe文件备份整个站点集

    命令方式为:

    Stsadm -o backup -url http://localhost -filename mjweb.bak 

    说明:此操作将整个站点集合转储至 mjweb.bak 文件,它包括全部站点内容,如网站、文档版本、列表和用户等;

    然后我们进行网站还原操作,其命令方式为:

    Stsadm –o restore -url http://localhost -filename mjweb.bak

    说明:如果目标位置存在一个站点集,必须先删去,或者增加一个参数-overwrite且次站点集处在停用状态,否则将会提示:"/"处已存在另一个网站。请选择一个新的URL,或指定 -overwrite 标记覆盖现有网站。

    另外,在增加overwrite参数的情况下,执行仍然出现错误,则需要关闭IIS,并重新执行restore就OK了;

    提醒: 有时候我们并不想备份整个站点集,只想备份站点集下的某一个网站(更多的应用是属于只备份某个网站); 那么我们直接把命令backup和restore改成import和export,URL设置成源网站的URL即可。

    备份与还原顺利并成功还原了网站集下的所有站点。兴奋中……新环境下原有的站点都会被覆盖。但是Featrue集合却会累加。用这种方式备份的BAK文件不大,并能指定站点备份,如果能自行编写一个批处理程序,自动备份与自动还原,那就会大大降低了操作技术难度,是非常方便的方法。

    还有需要说明的是,备份后虽然Webpart是不需要再次发布注册,但是难免在Webpart里面会有旧站点的信息,所以还是需要保留开发源代码,以便不时之需。wpresource里的Webpart附属文件;Template下的layout和images等支持文件;FormService所应用的表单模板等,都需要在迁移后手动复制或者上传。

    安装或删除服务器管理模板-MOSS技巧两则

    若要安装或删除服务器管理模板,必须同时对 Windows SharePoint Services 网站以及要安装或删除该模板的服务器的根目录具有 Administrator 权限。安装和删除是通过 Stsadm.exe 命令行实用程序完成的。  
    对于 32 位版的 Windows Server 2003,stsadm.exe 实用程序位于以下路径:%PROGRAMFILES%\common files\microsoft shared\web server extensions\12\bin。  
    对于基于 x64 版的 Windows Server 2003,stsadm.exe 实用程序位于以下路径:%drive%\program files (x86)\common files\microsoft shared\web server extensions\12\bin。 
    安装核心: 
    从提取的分发内容中抽出核心文件,例如:ApplicationTemplateCore.wsp。此核心解决方案文件将添加到解决方案存储中,这是 Windows SharePoint Services 配置存储中保存解决方案文件的一个表。 
    通过命令行运行 stsadm -o addsolution -filename <file_path>\ApplicationTemplateCore.wsp 
    接下来,运行 stsadm -o deploysolution -name ApplicationTemplateCore.wsp -allowgacdeployment 
    (根据 Windows SharePoint Services 的配置,可能需要其他属性。例如: 
    单一服务器:[ -local | -time <部署时间> ] 
    场:[ -immediate | -time <部署时间> ] 
    若要查看属性的列表,请运行 stsadm -help deploysolution) 
    最后,运行 stsadm -o copyappbincontent 
    删除核心: 
    注意:必须保持已安装和部署的应用程序模板核心解决方案,供要安装的其他服务器管理模板使用。  
    以管理员身份访问服务器。删除操作通过命令行实用程序 stsadm 来完成。  
    若要使某个解决方案不可用于 SharePoint 网站,请运行 stsadm -o retractsolution -name ApplicationTemplateCore.wsp(若要查看可添加到此命令的可选属性的列表,请运行 stsadm -help retractsolution) 
    若要从服务器中删除解决方案,请运行 stsadm -o deletesolution -name ApplicationTemplateCore.wsp(若要查看可添加到此命令的可选属性的列表,请运行 stsadm -help deletesolution) 
    应用程序模板核心现在已从解决方案存储中删除。

    删除sharepoint页面上出现错误的webpart的一个小trick。

    你的sharepoint页面是不是已经被你修改的面目全非(当然,它是你想要的样子,但是与原样已大相径庭)?如果左下角的动作栏中的“编辑页面”项已经不存在了,请往下看。
    这种情况下你无法通过点击“编辑页面”,调出右上角的“修改共享网页”栏来删除页面中出错的webpart,并且有些时候,页面中一旦有webpart出错,用frontpage又无法打开页面,那么如何将出错的webpart删除呢?方法是键入这个地址:http://aaa/_layouts/2052/spcontnt.aspx?&url=bbb,其中aaa一般为你的sharepoint站点服务器的名称,bbb为出现错误的页面的url。

    据说是北大学子的失恋诗


    何故
    昨日暮
    偶遇见她
    把纤纤玉手
    交那衰人牵住
    盈盈笑语左右顾
    神采飞扬凌波微步
    美眸中一片深情倾注
    似前年与我同在湖畔路
    也这般附耳交顾低语倾诉
    如今见我头也不点形同陌路
    我发现自己旧情难忘六神无主
    两眼痴呆双脚生根心内如被汤煮
    像我这么优秀的男子她总嫌我老土
    那土鳖相貌恶心行止猥琐她爱他粗鲁
    女孩子搞不清她想什么我越琢磨越胡涂
    明知道她与自己不合适想忘记她另起灶炉
    到头来都只能是剪不断理还乱最终于事无补
    兄弟我长这么大从来没怕过谁却栽给了这个主
    看来是上辈子欠她很多钱早知如此就不该和她堵
    碰上她算我倒霉下次说什么也得找个温柔姑娘相处
    总算明白这世上漂亮不能当饭吃往往还让你难堪重负
    从现在起踏踏实实勤勤恳恳谦虚谨慎待人有礼爱护公物
    切记过马路左右看要走人行斑马线要想富少生孩子多种树
    化悲痛为力量一边努力学习一边时刻准备着开发祖国大西部
    大丈夫何患无妻没有了你虽然孤独但也使我从此不再一叶障目
    这也使我好好反思为什么会失败总结经验教训继续探索革命道路
    我会遇上好姑娘没命地追她想她爱她决不放过她不管她属虎还属兔
    ----------------------------------------------------------------
    牛人的回贴:
    这个有志青年是个好同志失恋了不失魂落魄自暴自弃颇有男儿气度
    他虽然遭遇了现代女陈世美被无情抛弃但没有怪命也不埋怨政府
    反而擦亮眼睛激发斗志将其丑恶行径卑鄙嘴脸进行了深刻揭露
    再次论证了阶级斗争将会在一定范围内长期存在的精辟论述
    展望了初级阶段革命尚未成功同志仍需努力这条基本道路
    尤其难能可贵的是该同志认真反省自己并触动灵魂深处
    认识到过去在湖畔漫步是小资产阶级情调的严重错误
    险些为漂亮的外表所迷惑中了糖衣炮弹的惯用招数
    理论联系实际痛定思痛如梦方醒才知道差点迷途
    漂亮不能当饭吃漂亮不是本质不是革命的全部
    语言虽然通俗但体现了有志青年的朴实感悟
    批评与自我批评言辞感人真可谓发自肺腑
    并萌发修身齐家治国平天下的远大抱负
    体现了由此及彼由表及里的思想反复
    像他这么优秀的青年怎么能说他土
    自然是徒具外表的女人有眼无珠
    天涯何处无芳草佳丽不问出处
    好马不吃回头草旧情勿枉顾
    兔子不吃窝边草以为三窟
    百步之内必有芳草无数
    也许有天她变成弃妇
    才会想起你的好处
    再回来找你倾诉
    一切已经太晚
    你也有今天
    一屑不顾
    不理她
    扮帅

    ------------------------------------
    简化版!~~~

    何故
    昨日暮
    偶遇见她
    一屑不顾
    不理她
    扮帅

    Where does Microsoft Office Outlook 2007 save my information and configurations?

    The following is a list of locations where Microsoft Office Outlook 2007 saves information.

    Some of the folders might be hidden folders. To display hidden folders, do the following:

    • Windows Vista
      1. In Windows, click the Start button, and then click Control Panel.
      2. Click Appearance and Personalization.

        Note   If you are using Control Panel Classic View, double-click Folder Options, and then continue with step 4.

      3. Click Folder Options.
      4. On the View tab, under Advanced settings, under Files and Folders, under Hidden files and folders, select Show hidden files and folders.
    • Microsoft Windows XP
      1. Click the Start button, and then click Control Panel.
      2. Click Folder Options.

        Folder Options

      3. Click the View tab, and then click the Show hidden files and folders option.

    Your configuration may not include all of the following files. Some files are created only when you customize Outlook features.

    Personal Folders file (.pst)

    Including archive .pst files.

    Windows Vista drive:\user\AppData\Local\Microsoft\Outlook

    Microsoft Windows XP or Microsoft Windows Server 2003 drive:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook

    Offline Folders file (.ost)

    The .ost file is synchronized with the items on the server running Microsoft Exchange. Because your data remains on the Exchange server, you can recreate this .ost file on your new computer without having to back up the .ost file.

    Windows Vista drive:\user\AppData\Local\Microsoft\Outlook

    Windows XP or Windows Server 2003 drive:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook

    Personal Address Book (.pab)

    Windows Vista drive:\user\AppData\Local\Microsoft\Outlook

    Windows XP or Windows Server 2003 drive:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook

    Note   Personal Address Books (.pab) are no longer supported by Office Outlook 2007. When you upgrade to Office Outlook 2007, you are prompted to import any .pab file into Contacts. If you choose not to import the .pab file, you can import it later by using the Import and Export command on the File menu.

    Offline Address Book (.oab)

    Windows Vista drive:\user\AppData\Local\Microsoft\Outlook

    Windows XP or Windows Server 2003 drive:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook

    Command bar and menu customizations (.dat)

    Windows Vista drive:\user\AppData\Roaming\Microsoft\Outlook\outcmd.dat

    Windows XP or Windows Server 2003 drive:\Documents and Settings\user\Application Data\Microsoft\Outlook\outcmd.dat

    Navigation Pane settings (.xml)

    Windows Vista drive:\user\AppData\Roaming\Outlook\profile name.xml

    Windows XP or Windows Server 2003 drive:\Documents and Settings\user\Application Data\Microsoft\Outlook\profile name.xml

    This file includes Shortcuts, Calendar, and Contact links.

    Registered Microsoft Exchange extensions (.dat)

    Windows Vista drive:\user\AppData\Local\Microsoft\Outlook

    Windows XP or Windows Server 2003 drive:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook

    Outlook Contacts nicknames (.nk2)

    Windows Vista drive:\user\AppData\Roaming\Microsoft\Outlook

    Windows XP or Windows Server 2003 drive:\Documents and Settings\user\Application Data\Microsoft\Outlook

    Rules (.rwz)

    Windows Vista drive:\<user\AppData\Roaming\Microsoft\Outlook

    Windows XP or Windows Server 2003 drive:\Documents and Settings\user\Application Data\Microsoft\Outlook

    Note   If you upgraded to Office Outlook 2007 from a version of Outlook earlier than Microsoft Outlook 2002, you might have an .rwz file on your computer's hard disk drive. The .rwz file is no longer needed, and the information about rules is now kept on the server running Microsoft Exchange, and in the Personal Folders file (.pst) (Personal Folders file (.pst): Data file that stores your messages and other items on your computer. You can assign a .pst file to be the default delivery location for e-mail messages. You can use a .pst to organize and back up items for safekeeping.) for POP3 (POP3: A common protocol that is used to retrieve e-mail messages from an Internet e-mail server.) and IMAP (IMAP (Internet Message Access Protocol): Unlike Internet e-mail protocols such as POP3, IMAP creates folders on a server to store/organize messages for retrieval by other computers. You can read message headers only and select which messages to download.) e-mail accounts. So you can delete the file.

    If you use the Rules Import and Export feature, the default location for .rwz files is drive:\Documents and Settings\user\My Documents.

    Print styles (Outlprnt with no extension)

    Windows Vista drive:\user\AppData\Roaming\Microsoft\Outlook

    Windows XP or Windows Server 2003 drive:\Documents and Settings\user\Application Data\Microsoft\Outlook

    Signatures (.rtf, .txt, .htm)

    Windows Vista drive:\user\AppData\Roaming\Microsoft\Signatures

    Windows XP or Windows Server 2003 drive:\Documents and Settings\user\Application Data\Microsoft\Signatures

    Stationery (.htm)

    Windows Vista drive:\Program Files\Common Files\Microsoft Shared\Stationery

    Windows XP or Windows Server 2003 drive:\Program Files\Common Files\Microsoft Shared\Stationery

    Custom forms

    Windows Vista drive:\user\AppData\Local\Microsoft\Forms

    Windows XP or Windows Server 2003 drive:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Forms

    Dictionary (.dic)

    Windows Vista drive:\user\AppData\Roaming\Microsoft\UProof

    Windows XP or Windows Server 2003 drive:\Documents and Settings\user\Application Data\Microsoft\UProof

    Templates (.oft)

    Windows Vista drive:\user\AppData\Roaming\Microsoft\Templates

    Windows XP or Windows Server 2003 drive:\Documents and Settings\user\Application Data\Microsoft\Templates

    Send/Receive settings (.srs)

    Windows Vista drive:\user\AppData\Roaming\Microsoft\Outlook

    Windows XP or Windows Server 2003 drive:\Documents and Settings\user\Application Data\Microsoft\Outlook

    Message (.msg, .htm, .rtf)

    Windows Vista drive:\user\Documents

    Windows XP or Windows Server 2003 drive:\Documents and Settings\user\My Documents