BackUp Automatico

Muchas veces nos encontramos frente a la necesidad de implementar un sistema de resguardo de datos y no tenemos a mano los recursos suficientes como para comprar un producto de los mas conocidos. En esos casos se puede llegar a una solución implementando una serie de tecnologías. Por un lado usamos una herramienta de compresión (en este caso WinRar Trial, pero puede ser WinZip Trial), un archivo .bat para lanzar la compresión de datos y las tareas programadas de Windows para configurar la agenda de nuestro Backup.

Para comenzar identificamos el directorio (o archivo) que queremos resguardar y creamos un archivo .bat con la siguiente información dentro. Por ejemplo, el directorio C:\Projects\Ginkgo.

REM ==========================

REM BACK UP

REM ==========================

"C:\Program Files\WinRAR\RAR.exe" a "C:\Projects\Ginkgo.rar" "C:\Projects\Ginkgo"

REM ==========================

REM RENAME

REM ==========================

"C:\Projects\RenameRar.vbs"

Nota: En este caso he implementado un pequeño archivo VBS que renombra el .Rar y le agrega la fecha y hora en la que se ejecuto el proceso de Backup. Al final adjunto el código del VBS.

El resultado final, luego de correr durante un par de días, puede ser similar al siguiente. 

Para que este proceso sea automático, debemos crear una nueva tarea programada. Para esto vamos al Panel de Control de Windows / Scheduled Tasks / Add Scheduled Task

Luego seleccionamos el archivo BackUp.Bat

Definimos un nombre y la recurrencia del mismo (puede ser diaria, semanal, etc. Para ver opciones sobre la configuración de tareas programadas ver http://support.microsoft.com/kb/308569/es).

Como esta tarea programada, corre sin ningún usuario logueado, necesitamos asignarle una identidad al mismo.

Nota: Si nuestra tarea programada, accede a recursos no locales, hay que tener en cuenta que el usuario con el que corre la tarea tenga los privilegios necesarios.

Finalmente nuestra tarea ha quedado configurada y aparece en la lista de tareas programadas.

Espero que les sea útil.

Saludos y suerte !!

Referencias:

http://support.microsoft.com/kb/308569/es

http://www.aulaclic.es/winxp/t_13_1.htm

http://support.microsoft.com/default.aspx?scid=kb;en-us;308569&sd=tech

http://www.iopus.com/guides/winscheduler.htm

 

 

 

==========================================================================================

Archivo: BackUp.bat

==========================================================================================

REM ==========================

REM BACK UP

REM ==========================

"C:\Program Files\WinRAR\RAR.exe" a "C:\Projects\Ginkgo.rar" "C:\Projects\Ginkgo"

REM ==========================

REM RENAME

REM ==========================

"C:\Projects\RenameRar.vbs"

==========================================================================================

Archivo: RenameRar.vbs

==========================================================================================

call Main

Sub Main()

‘ recorre y renombra los rars.

call RenameFile("C:\Projects\Ginkgo.rar")

End Sub

Sub RenameFile( File )

Dim oFso ‘As Scripting.FileSystemObject

Dim oFile ‘As Scripting.File

Dim dDate ‘As String

Dim sFile ‘As String

set oFso = CreateObject("Scripting.FileSystemObject")

‘ get file

set oFile = oFso.GetFile(File)

‘ set new name

dDate = Year(now) & "-"

dDate = ddate & Right("00" & Month(now), 2) & "-"

dDate = ddate & Right("00" & Day(now), 2) & " "

dDate = ddate & Time()

dDate = Replace(dDate, ":", ".")

‘ rename

sFile = Replace(File, ".rar", " " & dDate & ".rar")

oFile.Copy(sFile)

oFile.Delete()

‘ destroy

set oFso = Nothing

set oFile = Nothing

End Sub

==========================================================================================

2005 Mobile Application Contest

A ponerse a pensar y diseñar rapido una aplicacion para PocketPC que ya termina el 2005 Mobile Aplication Contest (http://www.mobile2marketcontest.com/index.asp?s=OL3PH). Hay muy buenos premios y es una oportunidad excelente para probar esta nueva tecnologia.

Saludos y Suerte !!

PD: Termina el 31-05 !

Registrar Asp.Net en IIS

Este es el comando a ejecutar

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspne t_regiis.exe -i
 
y mas informacion en
 
 
Esto lo anoto ya que cada vez me cambio de PC, y no esta asp.net registrado, pierdo un ratito registrandolo.

Useful Links

Despues de revisar el documento Application Architecture for .Net: Designing Applications and Services que se puede bajar del sitio http://www.microsoft.com/downloads/details.aspx?FamilyId=A08E4A09-7AE3-4942-B466-CC778A3BAB34&displaylang=en. He extraido del mismo todas las referencias a links externos que se mencionan.

For more information about services and related concepts, see “Application Conceptual View” on MSDN (http://msdn.microsoft.com/library/en-us/dnea/html/eaappconland.asp).

For more information about using Visual Basic in host applications, see “Microsoft Visual Chapter 2: Designing the Components of an Application or Service 21 Basic for Applications and Windows DNA 2000” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndna/html/vba4dna.asp).

For information about working with .NET from Microsoft Office, see “Microsoft Office and .NET Interoperability” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnofftalk/html/office11012001.asp).

For general information about ASP.NET, see the ASP.NET section of MSDN (http://msdn.microsoft.com/library/default.asp?url=/nhp/default.asp?contentid=28000440) and the official ASP.NET site (http://asp.net).

For more information about the Mobile Internet Toolkit, see the Microsoft Mobile Internet Toolkit page on MSDN (http://msdn.microsoft.com/vstudio/device/mitdefault.asp).

For more resources for Pocket PC platform development and the .NET Compact Framework, see the Smart Device Extensions page on MSDN (http://msdn.microsoft.com/vstudio/device/smartdev.asp).

For more information about designing applications for the Tablet PC, see Design Recommendations for Exploiting the Pocket PC on MSDN (http://msdn.microsoft.com/library/en-us/tpcsdk10/html/whitepapers/designguide/tbconuxdgformfactorpenandink.asp).

For information about how to integrate a purely Office-based UI with your businessprocesses, see “Microsoft Office XP Resource Kit for BizTalk Server Version 2.0” (http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/001/743/msdncompositedoc.xml).

For more information about working with Office and .NET, see MSDN. The following two articles will help you get started with Office and .NET-based application development:

“Introducing .NET to Office Developers” (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnofftalk/html/office10042001.asp)

“Microsoft Office and .NET Interoperability” (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnofftalk/html/office11012001.asp)

For a more detailed discussion of optimistic locking, see “Designing Data Tier Components and Passing Data Through Tiers” on MSDN (http://msdn.microsoft.com/library/?url=/library/en-us/dnbda/html/BOAGag.asp?frame=true).

For more information about COMTI and Host Integration Server, see http://www.microsoft.com/hiserver.

For information about handling transactions and isolation level issues, see “Transactions” in “.NET Data Access Architecture Guide” on MSDN (http://msdn.microsoft.com/library/en-us/dnbda/html/daag.asp).

For information about handling transactions and isolation level issues, see “Transactions” in “.NET Data Access Architecture Guide” on MSDN (http://msdn.microsoft.com/library/en-us/dnbda/html/daag.asp).

For performance comparisons of different transaction approaches,see “Performance Comparison: Transaction Control” on MSDN (http://msdn.microsoft.com/library/en-us/Dnbda/html/Bdadotnetarch13.asp).

For more information about Enterprise Services, see “Understanding EnterpriseServices (COM+) in.NET” on MSDN (http://msdn.microsoft.com/library/en-us/dndotnet/html/entserv.asp).

For more information about how pipelines are used with Commerce Server, see “Pipeline Programming Concepts” in the Commerce Server 2000 SDK documentation on MSDN (http://msdn.microsoft.com/library/en-us/comsrv2k/htm/cs_sp_pipelineobj_woce.asp).

For more information about EnterpriseServices Events, see “COM+ Events” in the COM+ SDK documentation on MSDN (http://msdn.microsoft.com/library/en-us/cossdk/htm/pgservices_events_2y9f.asp).

For an in-depth example that shows how to implement a business process using BizTalk Server Orchestration and Visual Studio .NET, see “Building a Scalable Business Process Automation Engine Using BizTalk Server 2002 and Visual Studio .NET” on MSDN (http://msdn.microsoft.com/library/en-us/dnbiz2k2/html/BizTalkVSautoeng.asp).

For more information about integrating BizTalk Server with existing systems, see “Legacy File Integration Using Microsoft BizTalk Server 2000” on MSDN (http://msdn.microsoft.com/library/en-us/dnbiz/html/legacyfileint.asp).

For more information about BizTalk Server Orchestration, read BizTalk Server: The Complete Reference by David Lowe et al (published by Osborne/McGraw Hill) and “Designing BizTalk Orchestrations” in the BizTalk Server 2000 documentation (http://msdn.microsoft.com/library/en-us/biztalks/htm/lat_sched_intro_xiju.asp).

For information about adapters for BizTalk: http://www.microsoft.com/biztalk/evaluation/adapters/adapterslist.asp

The BizTalk Server Adapter’s Developer Guide can be found at: http://www.microsoft.com/biztalk/techinfo/development/wp_adapterdevelopersguide.asp

For more information about the choices of data formats available in your application design, see “Designing Data Tier Components and Passing Data Through Tiers” on MSDN (http://msdn.microsoft.com/library/?url=/library/en-us/dnbda/html/BOAGag.asp?frame=true).

For detailed design recommendations and sample code that will assist you when developing your business entity components, see “Designing Data Tier Components and Passing Data Through Tiers” on MSDN (http://msdn.microsoft.com/library/?url=/library/en-us/dnbda/html/BOAGag.asp?frame=true).

For relational database design information, see “Database Design Considerations” in the SQL Server 2000 SDK (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/createdb/cm_8_des_02_62ur.asp)

For information about developing an Exchange Server-based data store, see “Developing Web Storage System Applications” on MSDN (http://msdn.microsoft.com/library/en-us/dnmes2k/html/webstorewp.asp).

For more information about designing data access logic components, see “.NET Data Access Architecture Guide” (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/daag.asp). Microsoft also provides the Data Access Application Block (http://msdn.microsoft.com/library/en-us/dnbda/html/daab-rm.asp), a tested, high-performance data helper component that you can use in your application.

For more information about STRIDE, see “Designing for Securability” on MSDN at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsent7/html/vxcondesigningforsecurability.asp.

“Windows 2000 Kerberos Delegation” (http://www.microsoft.com/technet/treeview/default.asp?url=/TechNet/prodtechnol/windows2000serv/deploy/kerberos.asp)

“Impersonating and Reverting” (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconimpersonatingreverting.asp)

For the definition of salt value, see the Security Glossary on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/Security/s_gly.asp).

To choose the right one for your scenario, see “Authentication in ASP.NET: .NET Security Guidance” on MSDN (http://msdn.microsoft.com/library/en-us/dnbda/html/authaspdotnet.asp).

For guidelines on connecting to SQL Server from your distributed applications, see the “.NET Data Access Architecture Guide” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/daag.asp).

For more information, see “PrincipalPermissionAttribute Constructor” in the .NET Framework SDK on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemsecuritypermissionsprincipalpermissionattributeclassctortopic.asp?frame=true).

“Code Access Security” (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcodeaccesssecurity.asp)

“Introduction to Code Access Security” (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconintroductiontocodeaccesssecurity.asp)

“SecurityZone Enumeration” (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemsecuritysecurityzoneclasstopic.asp)

For an example of such a use,see “Creating WindowsIdentity and WindowsPrincipals Objects” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcreatingwindowsidentitywindowsprincipalobjects.asp?frame=true).

For more information about the .NET Principal and Identity objects and code samples illustrating this pattern for custom an windows principals, see “Principal and Identity Objects” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconprincipalidentityobjects.asp?frame=true).

For example, with XML Web services, you can implement XML digital signatures in SOAP by using the SignedXml class and SOAP headers. For more information about the SignedXml class, see “SignedXml Class” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityCryptographyXmlSignedXmlClassTopic.asp). For more information about SOAP headers, see “Using SOAP Headers” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconusingsoapheaders.asp?frame=true).

For information about how to implement auditing in SQL Server, see “Auditing SQL Server Activity” in the SQL Server 2000 SDK on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_security_2ard.asp).

For a Microsoft-provided reference building block for exception management that implements the outlined design, see “Exception Management Application Block for .NET” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/emab-rm.asp).

For detailed guidelines on how to add instrumentation to your application, see “Monitoring in .NET Distributed Application Design” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/monitordotnet.asp?frame=true).

You should instrument your classes as described in “Monitoring in .NET Distributed Application Design” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/monitordotnet.asp?frame=true).

For more information about tracking documents in BizTalk Server, see “Using BizTalk Document Tracking” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/biztalks/htm/lat_track_docs_gsra.asp).

For guidelines on how to add monitoring capabilities to your components, see “Monitoring in .NET Distributed Application Design” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/monitordotnet.asp?frame=true).

For more information about .NET scripting, see “Script Happens .NET” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnclinic/html/scripting06112001.asp?frame=true).

For in-depth technical information on how .NET locates local assemblies when creating objects, see “How the Runtime Locates Assemblies” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconhowruntimelocatesassemblies.asp).

For more information about using .NET remoting configuration to expose types, find types, and register channels, see “Registering Remote Objects Using Configuration Files” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconregisteringremoteobjectsusingconfigurationfiles.asp?frame=true).

For more information about storing Web service location information in the configuration file, see “Web References” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxconWebReferences.asp?frame=true).

Microsoft provides UDDI Services natively with Microsoft Windows .NET Server. For more information about this feature, see the Windows .NET Server Web site (http://www.microsoft.com/windows.netserver/developers/default.mspx). If you do not have Microsoft .NET Server, you can also use the Microsoft UDDI SDK (http://www.microsoft.com/downloads/release.asp?ReleaseID=35940) to install UDDI on a local computer.

For more information, see “Architectural Options for Asynchronous Workflow” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/bdadotnetarch12.asp?frame=true).

For more information about implementing asynchronous operations with .NET remoting, see the Asynchronous Remoting section in the .NET Framework documentation on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconasynchronousremoting.asp).

For more information about deciding between XML Web services and .NETremoting, see “Choosing Communication Options in .NET” in the .NET Framework documentation on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconchoosingcommunicationoptionsinnet.asp).

“COM+ Web Services: The Check-Box Route to XML Web Services” (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/comwscheckb.asp?frame=true)

“An Introduction to GXA: Global XML Web Services Architecture” (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dngxa/html/gloxmlws500.asp?frame=true)

For more information, see “Microsoft Systems Architecture: Internet Data Center” on Microsoft TechNet (http://www.microsoft.com/technet/treeview/default.asp?url=/technet/itsolutions/idc/default.asp).

For more information about how Web farms are implemented in Microsoft Systems Architecture Internet Data Center, see the Internet Data Center Reference Architecture Guide on TechNet (http://www.microsoft.com/technet/treeview/default.asp?url=/technet/itsolutions/idc/rag/ragc02.asp).

For more information about using the Session object in ASP.NET–based applications, see “ASP.NET Session State” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspnet/html/asp12282000.asp).

For more information about using ViewState in a Web farm, see “Taking a Bite Out of ASP.NET ViewState” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspnet/html/asp11222001.asp).

For more information about CLB, see the Application Center home page (http://www.microsoft.com/applicationcenter/).

For more information about implementing clustered SQL Server–based solutions, see Chapter 5 of the Internet Data Center Reference Architecture Guide (http://www.microsoft.com/technet/treeview/default.asp?url=/technet/itsolutions/idc/rag/ragc05.asp).

For detailed guidelines on how to partition assemblies with regard tocomplex development teams or assembly dependencies, see Chapter 3 of “Team Development with Visual Studio .NET and Visual SourceSafe” on MSDN (http://msdn.microsoft.com/library/?url=/library/en-us/dnbda/html/tdlg_rm.asp?frame=true).

Detailed guidance about choosing the right packaging mechanism for your application and using the right distribution technology is available in “Deploying .NET Applications: Lifecycle Guide” on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/DALGRoadmap.asp)

“.NET Framework SDK: Enabling Profiling” (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconenablingprofiling.asp?frame=true)

“.NET CLR Profiling Services: Track Your Managed Components to Boost Application Performance,” MSDN Magazine, November 2001 (http://msdn.microsoft.com/msdnmag/issues/01/11/NetProf/NetProf.asp)

Metro vs PDF !!!

Microsoft anunció "Metro", un nuevo formato interplataforma para creación, visualización e impresión de documentos, que se asemeja en funcionalidad y características al popular PDF de Adobe. Durante la conferencia WinHEC 2005, Microsoft precisó que Metro consiste en una serie de tecnologías diseñadas para crear, visualizar y escribir documentos.

El núcleo de Metro es el formato Metro Reach, basado en XML, que según Microsoft puede ser usado con todos los programas y en todas las plataformas. Se trata de una gran diferencia con el PDF, que sólo puede ser leído por los programas Reader y Acrobat.

Además de XML, Metro utiliza estándares abiertos como XAML y ZIP de modo que pueda utilizarse con una amplia gama de dispositivos y aplicaciones.

Metro incluirá una herramienta denominada “Reader” que permitirá visualizar y escribir archivos. También se incluirá un plug-in que permitirá crear documentos Metro desde todos los programas Windows, y un conector que acelerará el proceso de impresión.

 

More –> http://weblogs.golemproject.com/jalarcon/posts/3557.aspx

Desktop Sidebar

Se acuerdan de la Desktop Sidebar ? http://www.desktopsidebar.com

En mi anterior trabajo, yo la propuse como una herramienta para hacer la vida del usuario final mucho mas practica y facil. Escribimos unos paneles de prueba que se integraban dentro de la DS y quedaba muy pero muy practico. Obviamente me la rebotaron .

Sin embargo ahora, ojeando novedades del Longhorn, me entero que trae una feature muy pero muy parecida. Entre otras pilas de cosas que trae. Asi q a probar la DS y a acostumbrarse que dentro de poco sera parte del escritorio nuestro de cada dia.