From 9ac7cf3e0dd8778b88dc6c904713f5cdf23b344c Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sun, 12 Nov 2023 19:49:41 +0100 Subject: [PATCH] Fix path in tar. --- backup_ovh1.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup_ovh1.yml b/backup_ovh1.yml index ec88a1b..cc8d2bb 100755 --- a/backup_ovh1.yml +++ b/backup_ovh1.yml @@ -18,11 +18,11 @@ with_items: "{{ BACKUP_OVH1_VOLUMES }}" - name: Find lastest MySQL DB dump - ansible.builtin.shell: "ls -tr /mnt/volumes/mysql-server_dumps/data/mysql_dump-mysql_*" + ansible.builtin.shell: "cd /mnt/volumes; ls -tr mysql-server_dumps/data/mysql_dump-mysql_*" register: MySQL_dump - name: Find lastest applications DB dump - ansible.builtin.shell: "ls -tr /mnt/volumes/mysql-server_dumps/data/mysql_dump_*" + ansible.builtin.shell: "cd /mnt/volumes; ls -tr mysql-server_dumps/data/mysql_dump_*" register: DBs_dump - name: Archive DB dumps