Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
database

GitHub Action

Mongodump & Mongorestore action

v1.0.0

Mongodump & Mongorestore action

database

Mongodump & Mongorestore action

GitHub action to run mongodump/mongorestore commands

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Mongodump & Mongorestore action

uses: zahornyak/[email protected]

Learn more about this action in zahornyak/mongodump-action

Choose a version

Mongodump Action

GitHub Action for creating a MongoDB dump using mongodump.

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