klips/ansible/hexo-bak.yml

14 lines
285 B
YAML

---
- hosts: dev
become: yes
tasks:
- name: Backup Hexo files
archive:
path: /home/hexo/site
dest: /home/hexo/site.tgz
- name: Fetching backup files
fetch:
src: /home/hexo/site.tgz
dest: /home/someuser/backups/
flat: yes