You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,3 @@
1
-
> :warning:**This role was moved and renamed!**: Make sure to update your `galaxy.yml` (or `requirements.yml` if you have an older Trellis version).
2
-
3
1
# trellis-backup-role
4
2
5
3
This role is made to be used with [Trellis](https://roots.io/trellis/).
@@ -11,7 +9,7 @@ It will :
11
9
* for each `wordpress_site` configured, it will install two duply profiles
12
10
* one for database
13
11
* one for uploads
14
-
12
+
15
13
It does not backup website code. If you need to restore, you must first deploy your website on a new server, and then restore your database and uploads.
16
14
17
15
## Get Started
@@ -21,7 +19,7 @@ Add the role and its dependencies to the `galaxy.yml` file of Trellis :
21
19
```yaml
22
20
- name: backup
23
21
src: xilonz.trellis_backup
24
-
version: 2.1.5
22
+
version: 2.1.7
25
23
```
26
24
27
25
Run `ansible-galaxy install -r galaxy.yml` to install the new roles.
@@ -66,6 +64,8 @@ wordpress_sites:
66
64
+ max_age: 1M # time frame for old backups to keep, Used for the "purge" command.
67
65
+ full_max_age: 1M # forces a full backup if last full backup reaches this age.
68
66
+ max_full_backups: 1 # number of full backups to keep
67
+
+ post_actions: # optional
68
+
+ - "curl -L http://your-custom-endpoint" # commands to run after backup is completed
69
69
```
70
70
71
71
You can set `enabled: true` and `auto: false` to install duply profiles
0 commit comments