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

20 lines
472 B
YAML
Raw Normal View History

2020-01-24 22:36:22 -05:00
---
- 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