Hello selfhosted! Sometimes I have to transfer big files or a large amounts of small files in my homelab. I used rsync but specifying the IP address and the folders and everything is bit fiddly. I thought about writing a bash script but before I do that I wanted to ask you about your favourite way to achieve this. Maybe I am missing out on an awesome tool I wasn’t even thinking about.
Edit: I settled for SFTP in my GUI filemanager for now. When I have some spare time I will try to look into the other options too. Thank you for the helpful information.
rsync -are ssh from to@pc:/dir
What do you mean by specifying IP address?
sftp
All my machines have my keys, nothing to set up, nothing to tear down.
I’d say use something like zeroconf(?) for local computer names. Or give them names in either your dns forwarder (router), hosts file or ssh config. Along with shell autocompletion, that might do the job. I use scp, rsync and I have a NFS share on the NAS and some bookmarks in Gnome’s file manager, so i just click on that or type in scp or rsync with the target computer’s name.
Resilion Sync
WinSCP for editing server config
Rsync for manual transfers over slow connections
ZFS send/receive for what it was meant for
Samba for everything else that involves mounting on clients or other servers.
rsync is indeed fiddly. Consider SFTP in your GUI of choice. I mount the folder I need in my file browser and grab the files I need. No terminal needed and I can put the folders as favorites in the side bar.
If you want to use the terminal though, there is
scp
which is supported on both windows and Linux.Its just
scp [file to copy] [username]@[server IP]:[remote location]
That’s essentially the same as rsync
Just slower if you already have some of the files there.
Depends on what I’m transferring and to/from where:
scp
is my go-to since I’m a Linux household and have SSH keys setup and LDAP SSO as a fallbacksshfs
if I’m too lazy to connect via SMB/NFS (or I don’t feel like installing the tools for them) or I’m traversing a WANrsync
for bulk transfer and backups- Snapdrop/Pairdrop for one-off file/text shares between devices with GUIs (mostly phone <–> PC)
- SMB if I’m on a client PC and need to work with the files directly from the fileserver
- NFS between servers
- To get bulk data to my phone (e.g. updating my music library), I connect via USB in MTP mode and copy from the server via SMB or sshfs.
As a lazy person, I just prefer
sftp
on thunar.yeah I also use SFTP using FileZilla. Or like everybody mentioned including yourself, rsync to sync files across computers. Or even scp.
Ye old samba share.
But I do like using Nextcloud. I use it for syncing my video projects so I can pick up where I left off on another computer.
Samba Bamba!!
Rsync and NFS for me.
And me.
Snapdrop if they both have a gui/webbrowser. https://github.com/SnapDrop/snapdrop
Scp otherwise
Or https://github.com/schlagmichdoch/PairDrop if you don’t want to support a project bought out by LimeWire
smb share if its desktop to desktop. If its from phone to PC, I throw it on nextcloud on the phone, then grab it from the web ui on pc.
Smb is the way to go if you have identity set up, since your PC auth will carry over for the connection to the smb share. Nextcloud will be less typing if not since you can just have persistent auth on the app / web.
Syncthing