shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

289
active users

#rsync

2 posts2 participants0 posts today
Replied in thread

@sstephenson the good old #rsync (mostly over #ssh) remains the work horse in the absence of these. And then, for a bit more modernity there is #rclone which lets you deploy a static site the same way but to a lot of CDN-back-ends (so that makes me free of the vendor lock-in).

I forgot you can't just run a shell script with rsync calls via cron on macOS because of... security. I think my workaround will do though.

I write a shell script and then create an Automator application that calls the shell script. I then add a cron job to open the application.

I need to check if it runs when the screen is locked. I'm pretty sure it does but I will test again.

#rsync#cron#macOS

Did you know? My github.com/gokrazy/rsync module can be used as a library — both its client and its server accept the io.ReadWriter interface type :)

To demonstrate that this works and to show the flexibility this enables, I put together an rsync-over-gRPC demo:

github.com/stapelberg/rsync-ov

To be clear, this isn’t starting the samba rsync program in the background or anything like that; it’s a 100% Go implementation; memory-safe and fast! Standalone and cross-architecture! 🚀

The rsync manpage claims there are two different ways to use rsync, and then explains that there are two exceptions.

After studying the code, I think it’s clearer to think about 4 ways to use rsync, as I try to show in this diagram.

~2003 I asked my friend about good Linux backup software.

He told me to use rsync in a script, with cron or whatever, and basically roll a solution myself. I thought that was such a hack-y way of doing it.

But he was right. Rsync rules.

Also, software using rsync like rsnapshot and BackupPC, and countless others, are very good.