17 lines
363 B

  1. description: Rsync Backup Service
  2. type: run-once
  3. provides:
  4. backup:
  5. uses:
  6. schedule-command:
  7. constraint: required
  8. auto: summon
  9. solves:
  10. missing-feature: "scheduling of backups"
  11. default-options:
  12. ## backup every day on random time
  13. schedule: !bash-stdout |
  14. printf "%d %s * * *" "$((RANDOM % 60))" "$((RANDOM % 6))-23/6"