README.md 634 Bytes
Newer Older
Sahil Dhiman's avatar
Sahil Dhiman committed
1
# Blog mirror script
Sahil Dhiman's avatar
Sahil Dhiman committed
2

Sahil Dhiman's avatar
Sahil Dhiman committed
3
4
5
6
7
8
9
10
11
12
A shell script to mirror a website to another domain.

### Usage

Change the following variables for usage:
- `URL`: URL of the website to mirror.
- `LOC`: Specify location for mirroring content into.
- `RUN_LOG`: Specify location/file for keeping run logs.
- `ERROR_LOG`: Specify location/file for keeping error logs.

13
14
15
### Additions

To replace/edit certain text in mirrored version, add following after line 15
16
17
18
```
sed -i 's/EXISTING-TEXT/TEXT-TO-REPLACE-IT/g' FILE
```
Sahil Dhiman's avatar
Sahil Dhiman committed
19
20
21
22

### License

Script licensed under [Apache License 2.0](https://git.fosscommunity.in/sahilister/blog-mirror-script/-/blob/master/LICENSE).