this post was submitted on 18 Mar 2025
44 points (100.0% liked)

Selfhosted

44780 readers
2078 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] sugar_in_your_tea@sh.itjust.works 15 points 3 days ago (2 children)

What's wrong with rsync? If you don't like IP addresses, use a domain name. If you use certificate authentication, you can tab complete the folders. It's a really nice UX IMO.

If you'll do this a lot, just mount the target directory with sshfs or NFS. Then use rsync or a GUI file manager.

[–] possiblylinux127@lemmy.zip 3 points 2 days ago (1 children)

Just don't run rsync as a daemon as that's a security nightmare

[–] sugar_in_your_tea@sh.itjust.works 3 points 2 days ago (2 children)

Why would you do that? That sounds awful...

[–] jollyrogue@lemmy.ml 2 points 2 days ago* (last edited 2 days ago) (1 children)

The daemon tracks file state, so the transfers start quicker because rsync doesn’t have to scan the filesystem.

[–] sugar_in_your_tea@sh.itjust.works 2 points 2 days ago (1 children)

Right, but if you're transferring things that frequently, there are better solutions.

[–] jollyrogue@lemmy.ml 2 points 1 day ago (1 children)

Not necessarily. Rsync deltas are very efficient, and not everything supports deltas.

It may very well be the correct tool for the job.

Anyway, problem fit wasn’t part of the question.

Yeah, there are probably a few perfect fits for it. I don't rsync between machines very often, so the only use case I might have is backups, which is already well covered with a number of tools. Otherwise I just want to sync a few directories.

[–] possiblylinux127@lemmy.zip 2 points 2 days ago

It is, rsync sends data in plain text. There is a optional password that is also sent in plain text.

[–] grumuk@lemmy.ml -1 points 3 days ago (1 children)

I never even set up DNS for things that aren't public facing. I just keep /etc/hosts updated everywhere and ssh/scp/rsync things around using their non-fqdn hostnames.

You could also use mDNS to the same effect.