935 B
935 B
+++ title = "Syncing works" date = 2024-09-08 updated = 2024-09-08 [taxonomies] tags = ['self-hosting', 'zola', 'automation', 'systemd'] +++
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: