mirror of https://github.com/MISP/misp-docker
Update README.md
parent
a72a78a2c3
commit
5134238bbe
20
README.md
20
README.md
|
@ -137,42 +137,34 @@ The process is *NOT* battle-tested, so it is *NOT* to be followed uncritically.
|
||||||
|
|
||||||
### Backup
|
### Backup
|
||||||
|
|
||||||
1. **Stop the MISP container**:
|
1. Stop the MISP containers:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose down
|
docker compose down
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **Create an archive of the `misp-docker_mysql_data` volume**:
|
2. Create an archive of the `misp-docker_mysql_data` volume using `tar`:
|
||||||
Use `tar` to archive the volume data:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
tar -cvzf /root/misp_mysql_backup.tar.gz /var/lib/docker/volumes/misp-docker_mysql_data/
|
tar -cvzf /root/misp_mysql_backup.tar.gz /var/lib/docker/volumes/misp-docker_mysql_data/
|
||||||
```
|
```
|
||||||
|
|
||||||
3. **Start the MISP container**:
|
3. Start the MISP containers:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose up
|
docker compose up
|
||||||
```
|
```
|
||||||
|
|
||||||
### Restore
|
### Restore
|
||||||
|
|
||||||
1. **Stop the MISP container**:
|
1. Stop the MISP containers:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose down
|
docker compose down
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **Unpack the backup and overwrite the existing data**:
|
2. Unpack the backup and overwrite existing data by using the `--overwrite` option to replace existing files:
|
||||||
Use the `--overwrite` option to replace the existing files:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
tar -xvzf /path_to_backup/misp_mysql_backup.tar.gz -C /var/lib/docker/volumes/misp-docker_mysql_data/ --overwrite
|
tar -xvzf /path_to_backup/misp_mysql_backup.tar.gz -C /var/lib/docker/volumes/misp-docker_mysql_data/ --overwrite
|
||||||
```
|
```
|
||||||
|
|
||||||
3. **Start the MISP container**:
|
3. Start the MISP containers:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose up
|
docker compose up
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue