I was wondering what is the advantage of making all the files and diretories into a archive file for transfer, such as by cpio, instead of transferring them directly, such as by cp, scp?
Thanks and regards!
|
|
|
There are a few reasons you might want to tar up a bunch of files before transfer:
|
|||
|
|
|
I do this because its often easier to handle one big file, then thousands of small chunks. I don't have to calculate checksums for every file, most of the time it is enough to just create a checksum for one archive. Also it is easier for me to preserve file permissions. These are just some of my reasons. |
|||
|
|
|
If using rsync is possible, the advantage of archiving first is almost gone.
|
|||
|
|