Skip to content

Commit

Permalink
fix: method for checking repo status
Browse files Browse the repository at this point in the history
seems that `restic stats` takes much time, hence I use `list snapshots`
  • Loading branch information
papanito committed Apr 23, 2023
1 parent 4f355c2 commit a7e9ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/initialize-restic-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
block:
- name: Check status of restic repo "{{ target_location }}/{{ backup_name }}"
ansible.builtin.expect:
command: restic stats -r "{{ target_location }}/{{ backup_name }}"
command: restic -r "{{ target_location }}/{{ backup_name }}" list snapshots
responses:
password: "{{ backup_encryption_key }}"
become: true
Expand Down

0 comments on commit a7e9ccc

Please sign in to comment.