Skip to content

GitHub Action for creating a MongoDB dump using `mongodump`.

License

Notifications You must be signed in to change notification settings

zahornyak/mongodump-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mongodump Action

GitHub Action for creating a MongoDB dump using mongodump or restoring a MongoDB dump using mongorestore.

Example usage

name: Dump MongoDB

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

jobs:
  backup:
    runs-on: ubuntu-latest
    steps:
      - uses: zahornyak/[email protected]
        with:
          connection-string: ${{ secrets.MONGO_URI }}
          compress: true
          mongo-command: mongodump # this is by default. You can use `mongorestore` also here
          additional-args: '--tlsInsecure'

About

GitHub Action for creating a MongoDB dump using `mongodump`.

Resources

License

Stars

Watchers

Forks

Packages

No packages published