Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gabrielrufino/mongodump-action

🍃 GitHub Action for creating a binary export of a database's contents
https://github.com/gabrielrufino/mongodump-action

actions backup database github-actions mongodb mongodump security

Last synced: 7 days ago
JSON representation

🍃 GitHub Action for creating a binary export of a database's contents

Awesome Lists containing this project

README

        

# Mongodump Action

GitHub Action for creating a binary export of a database's contents

## Example usage

```yml
name: Backup

on:
schedule:
- cron: 0 0 * * *

jobs:
backup:
runs-on: ubuntu-latest
steps:
- uses: gabrielrufino/mongodump-action@v1
with:
connection-string: ${{ secrets.MONGO_URI }}
- uses: actions/upload-artifact@v4
with:
name: dump
path: ${{ github.workspace }}/dump
```

## Security

Remember that artifacts can be downloaded by anyone who has the artifact download link or access to the workflow run. Which means that you need to use a private repository if you want create backups and upload them as artifacts.