Skip to content

Create MongoDB on-demand and scheduled backups

Before creating a backup, make sure to check the MongoDB backup prerequisites.

To schedule or create an on-demand backup, check the instructions below. If you want to create a Point-in-time-recovery (PITR) backup instead, see Create MongoDB PITR backups.

  1. Go to Backup > All Backups.
  2. Click Create Backup.
  3. In the Create Scheduled backup window, select whether you want to create an On Demand or a Schedule Backup.
  4. Enter a unique name for the backup.
  5. Choose the service to back up from the Service name drop-down menu. This automatically populates the DB Technology field.
  6. Select whether you want to create a Physical or Logical backup of your data, depending on your use case and requirements.
  7. Choose a storage location for the backup. MongoDB supports both Amazon S3-compatible and local storage. If no options are available here, see the Create a storage location topic.
  8. Specify the backup type, the schedule, and a retention policy for your backup:
    • Backup Type: select Full. If you want to create a PITR backup instead, see the Create MongoDB PITR backups topic
    • Schedule: if you’re creating a scheduled backup, configure its frequency and start time.

    Important

    Make sure that the schedule you specify here does not create overlapping jobs or overhead on the production environment. Also, check that your specified schedule does not overlap with production hours. - Retention: this option is only available for snapshot backups stored on S3-compatible storage. If you want to keep an unlimited number of backup artifacts, type 0.

  9. Expand Advanced Settings to specify the settings for retrying the backup in case of any issues. You can either let PMM retry the backup again (Auto), or do it again yourself (Manual). Auto-retry mode enables you to select up to ten retries and an interval of up to eight hours between retries.
  10. To start creating the backup artifact, click Backup or Schedule at the top of the window, depending on whether you are creating a scheduled or an on-demand backup.
  11. Go to the All Backups tab, and check the Status column. An animated ellipsis indicator shows that a backup is currently being created.

Last update: 2023-03-30