You could wrap the
tar -czf ...
in a systemd unit and add a systemd drop-in configuration for whatever service that needs /var/lib/pve-cluster
(I guess it's just pve-cluster.service
) containing something along the lines of
Code:
[Unit]
Requires=the-tar-backup.service
After=the-tar-backup.service