<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt-BR">
	<id>https://wiki.projetoroot.com.br/index.php?action=history&amp;feed=atom&amp;title=RoboCopy</id>
	<title>RoboCopy - Histórico de revisão</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.projetoroot.com.br/index.php?action=history&amp;feed=atom&amp;title=RoboCopy"/>
	<link rel="alternate" type="text/html" href="https://wiki.projetoroot.com.br/index.php?title=RoboCopy&amp;action=history"/>
	<updated>2026-06-04T02:16:35Z</updated>
	<subtitle>Histórico de revisões para esta página neste wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.projetoroot.com.br/index.php?title=RoboCopy&amp;diff=85&amp;oldid=prev</id>
		<title>Diegocosta: /* Comandos */</title>
		<link rel="alternate" type="text/html" href="https://wiki.projetoroot.com.br/index.php?title=RoboCopy&amp;diff=85&amp;oldid=prev"/>
		<updated>2017-09-28T23:06:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Comandos&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;pt-BR&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Edição anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Edição das 20h06min de 28 de setembro de 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Linha 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linha 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Essa é uma boa ferramenta para cópia, backup e sincronização de arquivos no Windows. Podemos compará-la ao rsync do Linux.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Essa é uma boa ferramenta para cópia, backup e sincronização de arquivos no Windows. Podemos compará-la ao rsync do Linux.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Comandos==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Comandos==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Comando &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;se &lt;/del&gt;sincronização mais simples:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Comando &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;de &lt;/ins&gt;sincronização mais simples:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  robocopy C:\ E:\ /MIR /SEC&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  robocopy C:\ E:\ /MIR /SEC&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Opções===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Opções===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Diegocosta</name></author>
	</entry>
	<entry>
		<id>https://wiki.projetoroot.com.br/index.php?title=RoboCopy&amp;diff=50&amp;oldid=prev</id>
		<title>Diegocosta: robocopy ferramenta para backup no windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.projetoroot.com.br/index.php?title=RoboCopy&amp;diff=50&amp;oldid=prev"/>
		<updated>2017-09-13T13:12:43Z</updated>

		<summary type="html">&lt;p&gt;robocopy ferramenta para backup no windows&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Essa é uma boa ferramenta para cópia, backup e sincronização de arquivos no Windows. Podemos compará-la ao rsync do Linux.&lt;br /&gt;
==Comandos==&lt;br /&gt;
Comando se sincronização mais simples:&lt;br /&gt;
 robocopy C:\ E:\ /MIR /SEC&lt;br /&gt;
===Opções===&lt;br /&gt;
:/MIR&lt;br /&gt;
::- Essa opção é para a sincronização mais completa. É a abreviação das opções /E e /PURGE, as quais copiam pastas e subpastas mesmo se estiverem vazias e apagam no destino os arquivos que não mais existem na origem, respectivamente.&lt;br /&gt;
:/SEC&lt;br /&gt;
::- Mantem permissões especiais dos arquivos e pastas.&lt;br /&gt;
:/R:?&lt;br /&gt;
::- Se tiver problemas de permissão com um arquivo, tentará 1 milhão de vezes por padrão. Com essa opção podemos configurar isso. /R:1 tentará apenas uma vez.&lt;br /&gt;
:/W:?&lt;br /&gt;
::- Assim como a opção /R, o /W define o timeout entre cada tentativa de cópia. Ex: /W:1 vai esperar 1 segundo e tentar de novo.&lt;br /&gt;
:&amp;#039;&amp;#039;&amp;#039;/L&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::- Esse opção sempre deve ser usada antes de colocar o comando em produção. Ela simula as ações, mas sem mexer em nada. Acompanhe os logs para ver se ficou tudo certo.&lt;br /&gt;
:/XD&lt;br /&gt;
::- Opção bem útil. Com ela definimos exceções de sincronização. Ex:&lt;br /&gt;
 robocopy C: E:\ /MIR /XD C:\dir1&lt;br /&gt;
Isso vai sincronizar tudo que tem na unidade C:\ com exceção da pasta &amp;quot;dir1&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===Tratamento de Erros===&lt;br /&gt;
O Robocopy não usa o retorno padrão (0 - OK, 1 - erro). É importante saber desse detalhe ao fazer um tratamento de erros em um script, por exemplo. Tabela de retornos do Robocopy:&lt;br /&gt;
 0 - Nenhum erro ocorreu e nenhuma cópia foi feita.&lt;br /&gt;
 1 - Um ou mais arquivos foram copiados com sucesso.&lt;br /&gt;
 2 - Nenhum arquivo foi copiado, arquivos extras foram detectados.&lt;br /&gt;
 4 - Alguns arquivos com diferença foram encontrados, analisar retorno do log.&lt;br /&gt;
 8 - Ocorreu erro ao copiar alguns arquivos.&lt;br /&gt;
 16 - Nenhum arquivo foi copiado.&lt;br /&gt;
Obs.: pode ocorrer de algum erro ser a combinação de dois erros. (Erro 5 = Erro 4 + Erro 1)&lt;br /&gt;
&lt;br /&gt;
===Referências===&lt;br /&gt;
:[http://blogs.technet.com/b/filecab/archive/2008/07/31/robocopy-mir-switch-mirroring-file-permissions.aspx http://blogs.technet.com/b/filecab/archive/2008/07/31/robocopy-mir-switch-mirroring-file-permissions.aspx]&lt;br /&gt;
:[http://ss64.com/nt/robocopy-exit.html]&lt;br /&gt;
&lt;br /&gt;
===Erro com Cópia por Agendamento===&lt;br /&gt;
&lt;br /&gt;
O agendamento de tarefas agendadas não executa um .bat que aponte para unidades mapeadas.&lt;br /&gt;
Se esse for o seu caso, informe o caminho inteiro da unidade a ser copiada e o destino.&lt;/div&gt;</summary>
		<author><name>Diegocosta</name></author>
	</entry>
</feed>