{"id":32,"date":"2017-03-06T16:55:15","date_gmt":"2017-03-06T16:55:15","guid":{"rendered":"https:\/\/venetainformatica.com\/?p=32"},"modified":"2017-06-17T09:36:45","modified_gmt":"2017-06-17T09:36:45","slug":"robocopy-altre-informazioni-utili","status":"publish","type":"post","link":"https:\/\/venetainformatica.com\/index.php\/2017\/03\/06\/robocopy-altre-informazioni-utili\/","title":{"rendered":"ROBOCOPY &#8211; altre informazioni utili"},"content":{"rendered":"<p>Per eseguire ad esempio la copia della cartella PrivateDocs in un percorso diver locale o remoto ? possibile utilizzare il seguente comando:<\/p>\n<p><em><strong>robocopy ?SourcePath\\PrivateDoc? ?DestinationPath\\PrivateDoc? \/MIR \/SEC \/SECFIX \/R:1 \/W:1 \/V \/TEE \/LOG:Copy-PrivateDocs.log<\/strong><\/em><\/p>\n<h4><\/h4>\n<h2>\/MIR<\/h2>\n<p>Mirrors a directory tree (equivalent to \/e plus \/purge)<br \/>\nThe \/mir option is equivalent to the \/e plus \/purge options with one small difference in behavior:<br \/>\nWith the \/e plus \/purge options, if the destination directory exists, the destination directory security settings are not overwritten.<br \/>\nWith the \/mir option, if the destination directory exists, the destination directory security settings are overwritten.<\/p>\n<h2>\/SEC<\/h2>\n<p>Copies files with security (equivalent to \/copy:DAT)<\/p>\n<h2>\/SECFIX<\/h2>\n<p>Fixes file security on all files, even skipped ones<\/p>\n<h2>\/R<\/h2>\n<p>Specifies the number of retries on failed copies. The default value of N is 1,000,000 (one million retries)<\/p>\n<h2>\/W<\/h2>\n<p>Specifies the wait time between retries, in seconds. The default value of N is 30 (wait time 30 seconds)<\/p>\n<h2>\/V<\/h2>\n<p>Produces verbose output, and shows all skipped files<\/p>\n<h2>\/TEE<\/h2>\n<p>Writes the status output to the console window, as well as to the log file<\/p>\n<h2>\/LOG<\/h2>\n<p>Writes the status output to the log file (appends the output to the existing log file).<br \/>\nIl comando pu? essere anche eseguito pi? volte consentendo cos? di eseguire test o di gestire modifiche alla struttura di un file server con downtime minimi in quanto ? possibile eseguire la copia dei file non modificati a ridosso dello spostamento preventivamente.<\/p>\n<p>Per quanto riguarda la gestione dei permessi NTFS con RoboCopy si veda il seguente post<\/p>\n<p><a href=\"https:\/\/blogs.technet.microsoft.com\/filecab\/2008\/07\/31\/robocopy-mir-switch-mirroring-file-permissions\/\">Robocopy \/MIR switch ? mirroring file permissions<\/a><\/p>\n<h2>&gt; ROBOCOPY \/MIR \/SEC \/SECFIX<\/h2>\n<p>\/MIR will replicate data and security (as \/SEC is specified) for changed files, and \/SECFIX will update just the security for unchanged files. Add \/V to the command line if you want to see which files are having their security ?fixed? without having their data copied.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Per eseguire ad esempio la copia della cartella PrivateDocs in un percorso diver locale o remoto ? possibile utilizzare il seguente comando: robocopy ?SourcePath\\PrivateDoc? ?DestinationPath\\PrivateDoc? \/MIR \/SEC \/SECFIX \/R:1 \/W:1 \/V \/TEE \/LOG:Copy-PrivateDocs.log \/MIR Mirrors a directory tree (equivalent to \/e plus \/purge) The \/mir option is equivalent to the \/e plus \/purge options with [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[10,4,5,6],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-files","category-robocopy","category-tools","category-utility"],"_links":{"self":[{"href":"https:\/\/venetainformatica.com\/index.php\/wp-json\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/venetainformatica.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/venetainformatica.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/venetainformatica.com\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/venetainformatica.com\/index.php\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":4,"href":"https:\/\/venetainformatica.com\/index.php\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"predecessor-version":[{"id":36,"href":"https:\/\/venetainformatica.com\/index.php\/wp-json\/wp\/v2\/posts\/32\/revisions\/36"}],"wp:attachment":[{"href":"https:\/\/venetainformatica.com\/index.php\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/venetainformatica.com\/index.php\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/venetainformatica.com\/index.php\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}