Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Backup info in README.md #171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,47 @@ Custom root CA certificates can be mounted under `/usr/local/share/ca-certificat
# mount custom ca root certificates
- "./rootca.pem:/usr/local/share/ca-certificates/rootca.crt"
```
Backup and Restore MISP in Docker using Volume Archiving and Copy-Paste in another instance.

1. **Stop the MISP container**:

```bash
docker compose down
```

2. **Create an archive of the `misp-docker_mysql_data` volume**:
Use `tar` to archive the volume data:

```bash
tar -cvzf /root/misp_mysql_backup.tar.gz /var/lib/docker/volumes/misp-docker_mysql_data/
```

3. **Start the MISP container**:

```bash
docker compose up -d
```

## Restore

1. **Stop the MISP container**:

```bash
docker compose down>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'>' character needs to be removed

```

2. **Unpack the backup and overwrite the existing data**:
Use the `--overwrite` option to replace the existing files:

```bash
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**:

```bash
docker compose up -d
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-d starts them in daemon mode. Since in the readme we never do it, can you delete the -d option?

```

## Troubleshooting

Expand Down