Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

borgmatic_timer_cron_name needed for systemd timers #158

Open
noaho opened this issue Nov 19, 2024 · 2 comments
Open

borgmatic_timer_cron_name needed for systemd timers #158

noaho opened this issue Nov 19, 2024 · 2 comments

Comments

@noaho
Copy link

noaho commented Nov 19, 2024

Hi,

I call this role twice to set up two borg configs, one large config for a local drive, one small config for a remote server,

I use

  ansible.builtin.include_role:
    name: borgbase.ansible_role_borgbackup
  vars:
      borgmatic_timer_cron_name: "borgmatic-local"
      borgmatic_config_name: "config-local.yaml"
      borg_source_directories: "{{ borg_source_directories_local }}" (everything)

  ansible.builtin.include_role:
    name: borgbase.ansible_role_borgbackup
  vars:
      borgmatic_timer_cron_name: "borgmatic-remote"
      borgmatic_config_name: "config-remote.yaml"
      borg_source_directories: "{{ borg_source_directories_local }}" (just the stuff I can't afford to lose)

in different invocations of the role.

This option seems to have disappeared from the docs, though it's still implemented:

borgmatic_timer_cron_name: "borgmatic"

The problem that I have is it's not implemented for the systemd timer, so I can't move across to that.

Is it planned to implemented? Or is there a better way to call multiple destinations with a different set of files?

Cheers!

@m3nu
Copy link
Collaborator

m3nu commented Nov 19, 2024

You mean the option is not in the spec file? That file isn't fully complete, we can add it back. Only this one? borgmatic_timer_cron_name

@noaho
Copy link
Author

noaho commented Nov 23, 2024

yes, but it needs to be implemented for the systemd timer as well or it's not possible to have two backups.. - they compete with each other for the timer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants