How to copy directory from one Linux server to another with a minimum in-between period?
- by yegor256
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 folder
scp the archive to the destination server
gunzip the file there
delete the archive at the source and the destination
What is the best way to accomplish all this?