minor backup
This commit is contained in:
parent
fe019d6cef
commit
451d07d2c5
1 changed files with 7 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
||||||
create: yes
|
create: yes
|
||||||
block: |
|
block: |
|
||||||
{{ backups_path }}/{{ site.slug }}.tar.gz {
|
{{ backups_path }}/{{ site.slug }}.tar.gz {
|
||||||
prerotate
|
firstaction
|
||||||
tar czf {{ backups_path }}/{{ site.slug }}.tar.gz {{ site_data_path }}
|
tar czf {{ backups_path }}/{{ site.slug }}.tar.gz {{ site_data_path }}
|
||||||
endscript
|
endscript
|
||||||
weekly
|
weekly
|
||||||
|
@ -29,6 +29,8 @@
|
||||||
file:
|
file:
|
||||||
path: "{{ backups_path }}/{{ site.slug }}.tar.gz"
|
path: "{{ backups_path }}/{{ site.slug }}.tar.gz"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
owner: www-data
|
||||||
|
group: www-data
|
||||||
state: touch
|
state: touch
|
||||||
become: yes
|
become: yes
|
||||||
when: site_data_path is defined
|
when: site_data_path is defined
|
||||||
|
@ -58,6 +60,8 @@
|
||||||
file:
|
file:
|
||||||
path: "{{ backups_path }}/{{ site.slug }}.sql.gz"
|
path: "{{ backups_path }}/{{ site.slug }}.sql.gz"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
owner: www-data
|
||||||
|
group: www-data
|
||||||
state: touch
|
state: touch
|
||||||
become: yes
|
become: yes
|
||||||
when: site.mysql_database is defined
|
when: site.mysql_database is defined
|
||||||
|
@ -87,6 +91,8 @@
|
||||||
file:
|
file:
|
||||||
path: "{{ backups_path }}/{{ site.slug }}.sql.gz"
|
path: "{{ backups_path }}/{{ site.slug }}.sql.gz"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
owner: www-data
|
||||||
|
group: www-data
|
||||||
state: touch
|
state: touch
|
||||||
become: yes
|
become: yes
|
||||||
when: site.postgres_database is defined
|
when: site.postgres_database is defined
|
Loading…
Reference in a new issue