{"id":167,"date":"2021-04-15T17:57:54","date_gmt":"2021-04-15T16:57:54","guid":{"rendered":"https:\/\/www.netexpertise.eu\/es\/?p=167"},"modified":"2021-09-17T22:09:32","modified_gmt":"2021-09-17T21:09:32","slug":"sincronizar-archivos-remotos-desde-un-nas-o-un-servidor-windows","status":"publish","type":"post","link":"http:\/\/www.netexpertise.eu\/es\/sistema\/windows\/sincronizar-archivos-remotos-desde-un-nas-o-un-servidor-windows.html","title":{"rendered":"Sincronizar Archivos Remotos desde un NAS o un Servidor Windows"},"content":{"rendered":"\n<p><a href=\"http:\/\/technet.microsoft.com\/fr-fr\/library\/cc733145(v=ws.10).aspx\">robocopy<\/a> es una herramienta que le permite copiar e incluso sincronizar datos de un servidor (o un NAS) a otro servidor de Windows. Se proporciona en el kit de ressources de Windows 2003 Server o de forma nativa en Windows 2008 Server.<br>La sincronizaci\u00f3n requiere poco ancho de banda y se puede utilizar para realizar copias de seguridad de los datos a trav\u00e9s de un enlace de red lento.<br>\u00a0<br>Aqu\u00ed hay un script de DOS que sincroniza datos de carpetas compartidas en un servidor remoto a un servidor local. Podr\u00edamos hacerlo al rev\u00e9s, por supuesto. El software de copia de seguridad convencional puede ocuparse de los archivos presentes localmente y guardarlos en cinta si lo desea.<br>El software de respaldo no proporciona un agente que se pueda instalar en un NAS la mayor parte del tiempo. Por lo tanto, utilizo este script de sincronizaci\u00f3n para sitios remotos peque\u00f1os con archivos alojados en servidores Windows o NAS que no est\u00e1n equipados con software de respaldo.<br>\u00a0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">@echo off\nCLS\n\nSETLOCAL ENABLEDELAYEDEXPANSION\nset REMOTE_NAS=192.168.1.250\nset LOCAL_DIRECTORY=C:\\Copy\nset EXCLUDE_DIR=\"Recursos compartidos que no deben respaldarse\"\n\nrem Pasar por los recursos compartidos del servidor \/ NAS\nfor \/F \"tokens=1 delims=\" %%K in ^\n  ('net view %REMOTE_NAS%^|findstr Disk^|findstr \/V %EXCLUDE_DIR%') do (\n  set SHARELINE=%%K\n  set SHARELINE=!SHARELINE:Disk=#!\n  \n  rem Sincronizar archivos en el recurso compartido\n  for \/F \"tokens=1 delims=#\" %%S in (\"!SHARELINE!\") do (\n    set SHARE=%%S\n    echo Procesando \\\\%REMOTE_NAS%\\!SHARE!...\n    robocopy \"\\\\%REMOTE_NAS%\\!SHARE!\" \"%LOCAL_DIRECTORY%\\!SHARE!\" ^\n    \/XF *.avi Thumbs.db \/XD Temp* \/E \/COPY:DAT \/R:0 \/W:1 \/NP\n  )\n)<\/code><\/pre>\n\n\n\n<p><br>Ahorre con una extensi\u00f3n BAT, adapte los diferentes par\u00e1metros y cree una tarea programada para que se ejecute todas las noches.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>robocopy es una herramienta que le permite copiar e incluso sincronizar datos de un servidor (o un NAS) a otro servidor de Windows. Se proporciona en el kit de ressources de Windows 2003 Server o de forma nativa en Windows 2008 Server.La sincronizaci\u00f3n requiere poco ancho de banda y se puede utilizar para realizar copias [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[102,2],"tags":[26,34,103,71,73,23],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Netexpertise - Sincronizar Archivos Remotos desde un NAS o un Servidor Windows<\/title>\n<meta name=\"description\" content=\"C\u00f3mo sincronizar archivos remotos alojados en carpetas compartidas de un servidor Windows o un NAS para hacer una copia de seguridad\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.netexpertise.eu\/es\/sistema\/windows\/sincronizar-archivos-remotos-desde-un-nas-o-un-servidor-windows.html\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Netexpertise - Sincronizar Archivos Remotos desde un NAS o un Servidor Windows\" \/>\n<meta property=\"og:description\" content=\"C\u00f3mo sincronizar archivos remotos alojados en carpetas compartidas de un servidor Windows o un NAS para hacer una copia de seguridad\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.netexpertise.eu\/es\/sistema\/windows\/sincronizar-archivos-remotos-desde-un-nas-o-un-servidor-windows.html\" \/>\n<meta property=\"og:site_name\" content=\"Netexpertise\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-15T16:57:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-17T21:09:32+00:00\" \/>\n<meta name=\"author\" content=\"dave\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@netexpertise\" \/>\n<meta name=\"twitter:site\" content=\"@netexpertise\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.netexpertise.eu\/es\/sistema\/windows\/sincronizar-archivos-remotos-desde-un-nas-o-un-servidor-windows.html\",\"url\":\"http:\/\/www.netexpertise.eu\/es\/sistema\/windows\/sincronizar-archivos-remotos-desde-un-nas-o-un-servidor-windows.html\",\"name\":\"Netexpertise - Sincronizar Archivos Remotos desde un NAS o un Servidor Windows\",\"isPartOf\":{\"@id\":\"http:\/\/www.netexpertise.eu\/es\/#website\"},\"datePublished\":\"2021-04-15T16:57:54+00:00\",\"dateModified\":\"2021-09-17T21:09:32+00:00\",\"author\":{\"@id\":\"http:\/\/www.netexpertise.eu\/es\/#\/schema\/person\/27ec923be6625ac4b4bb86c8f0b12abf\"},\"description\":\"C\u00f3mo sincronizar archivos remotos alojados en carpetas compartidas de un servidor Windows o un NAS para hacer una copia de seguridad\",\"breadcrumb\":{\"@id\":\"http:\/\/www.netexpertise.eu\/es\/sistema\/windows\/sincronizar-archivos-remotos-desde-un-nas-o-un-servidor-windows.html#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.netexpertise.eu\/es\/sistema\/windows\/sincronizar-archivos-remotos-desde-un-nas-o-un-servidor-windows.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.netexpertise.eu\/es\/sistema\/windows\/sincronizar-archivos-remotos-desde-un-nas-o-un-servidor-windows.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"http:\/\/www.netexpertise.eu\/es\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sincronizar Archivos Remotos desde un NAS o un Servidor Windows\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.netexpertise.eu\/es\/#website\",\"url\":\"http:\/\/www.netexpertise.eu\/es\/\",\"name\":\"Netexpertise\",\"description\":\"Sistemas \/ Redes \/ DevOps\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.netexpertise.eu\/es\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"es\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.netexpertise.eu\/es\/#\/schema\/person\/27ec923be6625ac4b4bb86c8f0b12abf\",\"name\":\"dave\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"http:\/\/www.netexpertise.eu\/es\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"caption\":\"dave\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Netexpertise - Sincronizar Archivos Remotos desde un NAS o un Servidor Windows","description":"C\u00f3mo sincronizar archivos remotos alojados en carpetas compartidas de un servidor Windows o un NAS para hacer una copia de seguridad","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.netexpertise.eu\/es\/sistema\/windows\/sincronizar-archivos-remotos-desde-un-nas-o-un-servidor-windows.html","og_locale":"es_ES","og_type":"article","og_title":"Netexpertise - Sincronizar Archivos Remotos desde un NAS o un Servidor Windows","og_description":"C\u00f3mo sincronizar archivos remotos alojados en carpetas compartidas de un servidor Windows o un NAS para hacer una copia de seguridad","og_url":"http:\/\/www.netexpertise.eu\/es\/sistema\/windows\/sincronizar-archivos-remotos-desde-un-nas-o-un-servidor-windows.html","og_site_name":"Netexpertise","article_published_time":"2021-04-15T16:57:54+00:00","article_modified_time":"2021-09-17T21:09:32+00:00","author":"dave","twitter_card":"summary_large_image","twitter_creator":"@netexpertise","twitter_site":"@netexpertise","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.netexpertise.eu\/es\/sistema\/windows\/sincronizar-archivos-remotos-desde-un-nas-o-un-servidor-windows.html","url":"http:\/\/www.netexpertise.eu\/es\/sistema\/windows\/sincronizar-archivos-remotos-desde-un-nas-o-un-servidor-windows.html","name":"Netexpertise - Sincronizar Archivos Remotos desde un NAS o un Servidor Windows","isPartOf":{"@id":"http:\/\/www.netexpertise.eu\/es\/#website"},"datePublished":"2021-04-15T16:57:54+00:00","dateModified":"2021-09-17T21:09:32+00:00","author":{"@id":"http:\/\/www.netexpertise.eu\/es\/#\/schema\/person\/27ec923be6625ac4b4bb86c8f0b12abf"},"description":"C\u00f3mo sincronizar archivos remotos alojados en carpetas compartidas de un servidor Windows o un NAS para hacer una copia de seguridad","breadcrumb":{"@id":"http:\/\/www.netexpertise.eu\/es\/sistema\/windows\/sincronizar-archivos-remotos-desde-un-nas-o-un-servidor-windows.html#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.netexpertise.eu\/es\/sistema\/windows\/sincronizar-archivos-remotos-desde-un-nas-o-un-servidor-windows.html"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.netexpertise.eu\/es\/sistema\/windows\/sincronizar-archivos-remotos-desde-un-nas-o-un-servidor-windows.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"http:\/\/www.netexpertise.eu\/es"},{"@type":"ListItem","position":2,"name":"Sincronizar Archivos Remotos desde un NAS o un Servidor Windows"}]},{"@type":"WebSite","@id":"http:\/\/www.netexpertise.eu\/es\/#website","url":"http:\/\/www.netexpertise.eu\/es\/","name":"Netexpertise","description":"Sistemas \/ Redes \/ DevOps","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.netexpertise.eu\/es\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"es"},{"@type":"Person","@id":"http:\/\/www.netexpertise.eu\/es\/#\/schema\/person\/27ec923be6625ac4b4bb86c8f0b12abf","name":"dave","image":{"@type":"ImageObject","inLanguage":"es","@id":"http:\/\/www.netexpertise.eu\/es\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","caption":"dave"}}]}},"_links":{"self":[{"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/posts\/167"}],"collection":[{"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":14,"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":466,"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/posts\/167\/revisions\/466"}],"wp:attachment":[{"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/es\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}