Given two Linux boxes on a LAN, what's the simplest way to transfer files between them?
|
I use
to copy from the local machine to the remote machine, or
to copy from a remote machine to the local machine. If the username is not the same on the remote machine,
|
|||||||||||
|
|
I usually mount a directory through ssh via FUSE and sshfs. Mount:
Unmount:
|
|||
|
|
|
I use netcat (if I don't need security)
|
|||||
|
|
nfs could be useful. The Network File System (NFS) allows a client node to perform transparent file access over the network. By using NFS, a client node operates on files residing on a variety of servers and server architectures, and across a variety of operating systems. File access calls on the client (such as read requests) are converted to NFS protocol requests and sent to the server system over the network. You might require help from your Unix Admin to setup it first time but its very useful. |
||||
|
|
For one off file transfers, I usually use SFTP or an existing samba share. For keeping in sync, I suggest you try rsync or unison (for 2-way synchronization) Edit: |
||||
|
|
|
For doing backups I often use rsync. If I want to backup onto a remote machine I'll put a line in /etc/fstab to keep the remote machine mounted by NFS or CFIS (Samba).
Then have a line in my crontab using rsync.
|
|||
|
|
|
netcat is simple but not all versions close connection reliably. Here is thread about using To sum it up:
|
|||
|
|
|
Giver is a simple file sharing desktop application. Other people running Giver on your network are automatically discovered and you can send files to them by simply dragging the files to their photo or icon shown in Giver. In Ubuntu:
|
||||
|
|
|
Also you could use Giver program. Using it you could transfer files over LAN with 2 clicks or by "drag'n'dropping" file to recipient. Recipients (which also have to run |
|||||||
|