If you prefer systemd timers, here are some templates for realm sync. Keep in mind allowed characters for systemd units when choosing realm name.
Adding service unit files:
systemctl edit --full --force realm-sync@.service
systemctl edit --full --force realm-sync@.timer
Service unit template...
Systemd service files, based on fstrim.service, fstrim.timer and a one liner with xargs from a previous post (kudos!)
Feel free to correct/modify/improve.
# /etc/systemd/system/pct-fstrim.service
[Unit]
Description=Discard unused blocks of all LXC volumes on current node
[Service]
Type=oneshot...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.