diff --git a/semaphore.yaml b/semaphore.yaml index 551acc4..29ebdcc 100644 --- a/semaphore.yaml +++ b/semaphore.yaml @@ -16,5 +16,9 @@ register: backup_dirs - name: Copy backup files + copy: + remote_src: true + src: {{ item.path }} + dest: "{{ backup_dir }}" debug: var=item.path loop: "{{ backup_dirs.files }}" \ No newline at end of file diff --git a/vars/semaphore/variable.yaml b/vars/semaphore/variable.yaml index 43cfcb7..520ba33 100644 --- a/vars/semaphore/variable.yaml +++ b/vars/semaphore/variable.yaml @@ -1 +1,3 @@ local_backup: /var/lib/docker/volumes/semaphore/_data/backup/ +backup_dir: /media/backup/hetzner/ +