Ensure copy from installed WP package files doesn't zap existing files.
In particular, we were zapping plugins, uploads and themes. So the whole site went blank.
This commit is contained in:
@@ -1,2 +1,5 @@
|
||||
restic_password:
|
||||
social: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
|
||||
scabbers: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
|
||||
hedwig: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
|
||||
cloud: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
|
||||
|
||||
@@ -26,3 +26,4 @@ base:
|
||||
- secrets/mariadb
|
||||
- secrets/wordpress
|
||||
- nextcloud/cloud
|
||||
- secrets/restic
|
||||
|
||||
3
states/backup/cloud_restic_cron.daily
Normal file
3
states/backup/cloud_restic_cron.daily
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
mysqldump --all-databases > /root/mysql.sql
|
||||
exec /usr/bin/restic --password-file /etc/restic.pass --repo /var/local/backup/restic backup /etc --exclude="*.o" /etc /root /home /var/mail /usr/local /var/lib/wordpress /srv
|
||||
@@ -1,2 +1,3 @@
|
||||
#!/bin/sh
|
||||
mysqldump --all-databases > /root/mysql.sql
|
||||
exec /usr/bin/restic --password-file /etc/restic.pass --repo /var/local/backup/restic backup /etc --exclude="*.o" /etc /root /home /var/mail /usr/local /var/lib/wordpress /srv
|
||||
|
||||
@@ -58,6 +58,7 @@ base:
|
||||
- mariadb
|
||||
- apache
|
||||
- php_fpm/trixie
|
||||
- backup/restic
|
||||
- cloud
|
||||
- villagehall_website
|
||||
|
||||
|
||||
@@ -20,8 +20,6 @@ villagehall_framework_package_content:
|
||||
- name: /var/lib/wordpress/wp-content-villagehall
|
||||
- source: /var/lib/wordpress/wp-content
|
||||
- makedirs: True
|
||||
- force: True
|
||||
- preserve: True
|
||||
- user: www-data
|
||||
- group: www-data
|
||||
- dir_mode: 755
|
||||
|
||||
Reference in New Issue
Block a user