Domanda

Ho bisogno di un modo per aggiornare tutti i file in una cartella di destinazione e le sue sotto-directory con i file in una cartella di origine singola.

Fonte: File A, B File, file C
Destinazione: File A, destinazione-> SubFolder: File B

E 'necessario aggiornare il file A e B del file nella loro cartella di dest e anche ignorare File C in quanto non esiste da nessuna parte in dest.

Questo è possibile con xcopy o robocopy o c'è un altro strumento che farà il lavoro? Ho avuto un po 'di gioco non riesce a capirlo.

Grazie in anticipo.

È stato utile?

Soluzione

robocopy will definitely help you out. While it doesn't sound like you can straight merge the source and destination outright (source sounds flat while the destination has some hierarchy), it has commands for copying entire folders and not copying if destination files aren't there.

Altri suggerimenti

You could use DeltaCopy. This is a open-source, GUI windows version of the rsync tool. Some of its features are

  • Incremental backup - Copies part of the file that is actually modified (so saving time and network resources).
  • Task scheduler - Profiles in DeltaCopy can run based on a schedule.
  • Windows friendly environment.
  • Complex Ignore patterns (filter files by name, extension, size, path or other criteria).

you can use ROBOCOPY like that

robocopy E:\Source G:\Destination\SubFolder /e /mir /np /log:backup_log.txt

for more info

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top