rsync and systemd
I am quite 🤩 ecstatic 🤩: I got a seamless sync working between my local Git-controlled site content and my server! The way I did it:
- use rsync to sync local files to the server in a normal user-owned folder
- setup another rsync-script owned by the
zolauser on the server - create a
systemdunit path and service that syncs these files with the proper ownership to the folders where thezolaservice watches for changes - 💸 profit!
Resources
Online resources that helped me with this: