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

[FEATURE] Add scenario to backup VM Cluster from ansible #31

Open
denisgolius opened this issue Oct 31, 2022 · 0 comments
Open

[FEATURE] Add scenario to backup VM Cluster from ansible #31

denisgolius opened this issue Oct 31, 2022 · 0 comments

Comments

@denisgolius
Copy link

It wold be great to have the same functionality to run backups in VM Cluster as it works for VM Single node, see -

- name: Configure cron
cron:
name: "backup victoriametrics data"
user: root
state: present
hour: "{{ victoriametrics_backup_cron_hour }}"
job: "{{ _victoria_backup_proxy | default(omit) }} /usr/local/bin/vmbackup-prod -snapshot.createURL=http://localhost:8428/snapshot/create {% if victoriametrics_backup_custom_s3_endpoint != '' %} -customS3Endpoint {{ victoriametrics_backup_custom_s3_endpoint }} {% endif %} -storageDataPath {{ victoriametrics_data_dir }} -dst {{ victoriametrics_backup_destination }}/$(date +\\%Y-\\%m-\\%d)"
when: victoriametrics_backup_enabled | bool

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

1 participant