I have a rather big directory on one server (over 4000 files), which I'd like to copy to another server (which contains a previous version of this directory). rsync
is the first option, but it will put the destination folder into waiting status for a rather long period of time (more than a minute).
I'd like to do it a bit differently:
gzip
the source folderscp
the archive to the destination servergunzip
the file there- delete the archive at the source and the destination
What is the best way to accomplish all this?
Best Answer
rsync
has--delay-updates
which seems to be what you need:«…
…»