Comparison of Network Drives (Remote File System)
-
NFS is very fast but not secure and it is for Unix/Linux only. It is a good choice for local network sharing.
-
Samba is fast, secure and cross-platform. it is good for general purpose sharing and popular in companies.
-
SSHFS is slow but very secure and it is for Unix/Linux only. It is good for situations where security is critical but performance is not.
To sum up, Samba is the one you want to use generally speaking. However, if you are on a local network and performance is crtical, go with NFS.
Comparison of File-copying Tools
-
Generally speaking,
rsyncis the tool you want to use in most situations. It is definitely preferred overscpunless in situations whenrsyncis not available (e.g., on Andrioid). -
There are some other file-copying tools such as
mbufferandnetcat/ncto help you squeeze the most out of network speed. However, unless you want to transfer huge files over high speed LAN and security is not a concern, you still want to stick withrsync. The example below is how you can copy files suingmbuffer.tar zcf - bigfile.m4p | mbuffer -s 1K -m 512 | ssh otherhost "tar zxf -"The example below uses
tarandnetcatto copy files.# run this command on the machine with the source files tar --numeric-owner -cvf - ./ | netcat -l -p 2020 # run this command on the machine to copy files to netcat source_machine_ip 2020 | tar -zxf -
References
https://linuxaria.com/article/tar-rsync-netcat-scp
http://moo.nac.uci.edu/~hjm/HOWTO_move_data.html
https://unix.stackexchange.com/questions/48399/fast-way-to-copy-a-large-file-on-a-lan