1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
fedihub-ansible/playbooks/backup/git.yml
2020-01-26 20:41:48 +05:00

21 lines
474 B
YAML

---
- hosts: git.crypto-libertarian.com
tasks:
- name: Remove archive of "/home/git"
file:
dest: /tmp/git_repos.tar.gz
state: absent
- name: Archive "/home/git"
archive:
path: /home/git
dest: /tmp/git_repos.tar.gz
format: gz
owner: root
group: root
mode: 'u=rw,g=r,o='
- name: Fetch archive of "/home/git"
fetch:
src: /tmp/git_repos.tar.gz
dest: ../../backups