Answer the question
In order to leave comments, you need to log in
How to copy a bunch of files without replacing existing ones?
There are two directories. In my particular case, these are two machines quite distant from each other, but this does not play a special role.
A couple of weeks ago I copied half a terabyte of files from one machine to another.
And now there is a need to update the files on one of the machines.
But I don't want to download half a byte again. Of course, you can just hold down shift and click on No when asked about replacing files, but what about the situation if the file names are the same, and the copied file is fresher than the existing one? How to take into account this moment?
Maybe there is some built-in tool for this? Or is there some third party tool?
Answer the question
In order to leave comments, you need to log in
You can use zpaq to create an index.
Run on the machine where the files were moved - a deduplicated archive is created, and an index.
zpaq64.exe a ArchiveName? Path\to\files -m1 -index indexfile
Move the resulting index to the first machine and run it on it (the index must be in the same folder where the executable file is.
zpaq64.exe a ArhiveName? Path\to\files -m1 -index indexfile
is obtained the second volume of the archive is small - it does not include the blocks that are in the
index.Copy it to the desired machine and unpack your two-volume archive to the desired folder with the -force switch to overwrite existing files.
After that, how to synchronize - make another archive on the first machine, and move it to the second where you unpack it. The only negative is the need to store the archive on the second machine.
You can also try cwRsync, like an analogue of Rsync, but I haven’t tried it in Windows, I don’t know how convenient it is.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question