Behalte File-Ownership beim kopieren

This commit is contained in:
Marius Alwan Meyer 2023-04-30 23:56:59 +00:00
parent 124456ae07
commit d8a29adb56

View File

@ -10,12 +10,11 @@
- Ensure Gitea is running - Ensure Gitea is running
- name: Backup Gitea Directory - name: Backup Gitea Directory
ansible.builtin.copy: ansible.builtin.synchronize:
src: /opt/gitea/ src: /opt/gitea/
dest: "/opt/gitea.backup@{{ lookup('pipe', 'date --utc --iso-8601=seconds') }}" dest: "/opt/gitea.backup@{{ lookup('pipe', 'date --utc --iso-8601=seconds') }}"
mode: preserve recursive: true
remote_src: true delegate_to: "{{ inventory_hostname }}"
directory_mode: true
listen: listen:
- Backup Gitea - Backup Gitea
register: backup register: backup