2
2
3
3
Creative Commons Site Reliability Engineering WordPress Data Pull
4
4
5
- ** :warning : Destroys and replaces destination data**
5
+ > :warning : ** Destroys and replaces destination data**
6
6
7
7
8
8
## Code of Conduct
@@ -14,8 +14,8 @@ Creative Commons Site Reliability Engineering WordPress Data Pull
14
14
> behavior to [ conduct@creativecommons.org ] ( mailto:conduct@creativecommons.org )
15
15
> per our [ reporting guidelines] [ reporting_guide ] .
16
16
17
- [ code_of_conduct ] :https://creativecommons.github.io /community/code-of-conduct/
18
- [ reporting_guide ] :https://creativecommons.github.io /community/code-of-conduct/enforcement/
17
+ [ code_of_conduct ] :https://opensource. creativecommons.org /community/code-of-conduct/
18
+ [ reporting_guide ] :https://opensource. creativecommons.org /community/code-of-conduct/enforcement/
19
19
20
20
21
21
## Contributing
@@ -25,14 +25,22 @@ See [`CONTRIBUTING.md`](CONTRIBUTING.md).
25
25
26
26
## Assumptions
27
27
28
- 1 . Destination web hosting and WordPress are configured independently (ex. by
29
- SaltStack)
30
- - ` wp-config.php ` is already setup
31
- - user is a member of ` www-data `
32
- - [ WP-CLI] [ wp-cli ] is installed on the destination host
33
- 2 . WordPress source data was created using
34
- [ /states/wordpress/files/backup_wordpress.sh] [ backup ] found in the
35
- [ creativecommons/sre-salt-prime] [ salt-prime ] repository.
28
+ 1 . ` DEST_HOST ` :
29
+ 1 . Web hosting and WordPress are configured independently (ex. by
30
+ SaltStack)
31
+ - ` wp-config.php ` is already setup
32
+ - user has appopriate permissions (ex. member of ` www-data ` )
33
+ - [ WP-CLI] [ wp-cli ] is already installed
34
+ 2 . You may need to configure your users ` .ssh/config ` . For example,
35
+ ` chapters_stage ` requires the following entry:
36
+ ```
37
+ Host 10.22.10.14
38
+ ProxyJump 10.22.10.10
39
+ ```
40
+ 2. `SOURCE_HOST`:
41
+ 1. WordPress source data was created using
42
+ [/states/wordpress/files/backup_wordpress.sh][backup] found in the
43
+ [creativecommons/sre-salt-prime][salt-prime] repository.
36
44
37
45
[wp-cli]: https://wp-cli.org/
38
46
[salt-prime]: https://github.com/creativecommons/sre-salt-prime
@@ -41,14 +49,20 @@ See [`CONTRIBUTING.md`](CONTRIBUTING.md).
41
49
42
50
## Use
43
51
44
- 1 . Optionally, run [ ` backup_wordpress.sh ` ] [ backup ] on the source host
45
- 2 . Clone this repository
46
- 3 . Make a copy of one of the appropriate [ ` config_examples/ ` ] ( config_examples/ )
47
- and replace ` FILEPATH ` and ` USERNAME `
48
- 4 . Execute script with config file as only argument. For example:
49
- ``` shell
50
- ./wp-pull.sh chapters__stage
51
- ```
52
+ 1. `SOURCE_HOST`: *(optional)*
53
+ - run [`backup_wordpress.sh`][backup] on the
54
+ 2. Local/laptop:
55
+ 1. Clone this repository
56
+ 2. Prepare configuration file
57
+ 1. Make a copy of one of the appropriate
58
+ [`config_examples/`](config_examples/)
59
+ 2. Replace `FILEPATH` and `USERNAME` with your information
60
+ 3. Ensure `SOURCE_DB_FILE` and `SOURCE_UPLOADS_FILE` are valid files on
61
+ the `SOURCE_HOST`.
62
+ 3. Execute script with config file as only argument. For example:
63
+ ```shell
64
+ ./wp-pull.sh chapters__stage
65
+ ```
52
66
53
67
54
68
# Alternatives
0 commit comments