minor backup

This commit is contained in:
LUXEY Adrien 2020-11-29 22:33:26 +01:00
parent fe019d6cef
commit 451d07d2c5
1 changed files with 7 additions and 1 deletions

View File

@ -13,7 +13,7 @@
create: yes
block: |
{{ backups_path }}/{{ site.slug }}.tar.gz {
prerotate
firstaction
tar czf {{ backups_path }}/{{ site.slug }}.tar.gz {{ site_data_path }}
endscript
weekly
@ -29,6 +29,8 @@
file:
path: "{{ backups_path }}/{{ site.slug }}.tar.gz"
mode: "0644"
owner: www-data
group: www-data
state: touch
become: yes
when: site_data_path is defined
@ -58,6 +60,8 @@
file:
path: "{{ backups_path }}/{{ site.slug }}.sql.gz"
mode: "0644"
owner: www-data
group: www-data
state: touch
become: yes
when: site.mysql_database is defined
@ -87,6 +91,8 @@
file:
path: "{{ backups_path }}/{{ site.slug }}.sql.gz"
mode: "0644"
owner: www-data
group: www-data
state: touch
become: yes
when: site.postgres_database is defined