Syncing works.
Table of Contents
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
zola
user on the server - create a
systemd
unit path and service that syncs these files with the proper ownership to the folders where thezola
service watches for changes - 💸 profit!
Resources
Online resources that helped me with this: