Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions roles/backup/tasks/init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,17 @@
- name: Determine the timestamp for the backup once for all nodes
set_fact:
now: '{{ lookup("pipe", "date +%F-%T") }}'
when: not finalizer_run | bool

- name: Set backup directory name
set_fact:
backup_dir: "/backups/eda-openshift-backup-{{ now }}"
when: not finalizer_run | bool

- name: Create directory for backup
k8s_exec:
namespace: "{{ backup_pvc_namespace }}"
pod: "{{ ansible_operator_meta.name }}-db-management"
command: >-
mkdir -p {{ backup_dir }}
when: not finalizer_run | bool
Loading