Skip to content
logo
Percona Backup for MongoDB
FAQ
Initializing search
    percona/pbm-docs
    percona/pbm-docs
    • Home
      • How PBM works
      • Components
      • Supported MongoDB versions
      • Supported MongoDB deployments
      • Install
      • Set up and configure
      • Overview
      • Physical backups
      • Incremental physical backups
      • Logical backups
      • Selective backups
      • Point-in-Time Recovery
      • Start a backup
      • List backups
      • Restore a backup
      • View restore progress
      • Cancel a backup
      • Delete backups
      • View backup logs
      • Replay oplog from arbitrary start time
      • Architecture
      • Authentication
        • Overview
        • Remote backup configuration examples
      • Schedule backups
      • Configure PBM remotely
      • Upgrade PBM
      • Troubleshoot PBM
      • Automate access to S3 buckets for PBM
      • Remove PBM
    • FAQ
      • What’s the difference between PBM and mongodump?
      • Why does Percona Backup for MongoDB use UTC timezone instead of server local timezone?
      • Can I restore a single collection with Percona Backup for MongoDB?
      • Can I backup specific shards in a cluster?
      • Do I need to stop the balancer for PITR restore?
      • PBM commands
        • Configuration file
        • Remote backup storage options
        • Point-in-time recovery options
        • Backup options
        • Restore options
      • Glossary
      • Release notes index
      • Percona Backup for MongoDB 2.0.4 (2023-02-21)
      • Percona Backup for MongoDB 2.0.3 (2023-01-11)
      • Percona Backup for MongoDB 2.0.2 (2022-10-27)
      • Percona Backup for MongoDB 2.0.1 (2022-10-12)
      • Percona Backup for MongoDB 2.0.0 (2022-09-21)
      • Percona Backup for MongoDB 1.8.1 (2022-07-12)
      • Percona Backup for MongoDB 1.8.0 (2022-06-09)
      • Percona Backup for MongoDB 1.7.0 (2022-04-18)
      • Percona Backup for MongoDB 1.6.1 (2021-11-04)
      • Percona Backup for MongoDB 1.6.0 (2021-08-16)
      • Percona Backup for MongoDB 1.5.0 (2021-05-10)
      • Percona Backup for MongoDB 1.4.1 (2021-01-28)
      • Percona Backup for MongoDB 1.4.0 (2020-12-24)
      • Percona Backup for MongoDB 1.3.4 (2020-11-19)
      • Percona Backup for MongoDB 1.3.3 (2020-11-04)
      • Percona Backup for MongoDB 1.3.2 (2020-10-14)
      • Percona Backup for MongoDB 1.3.1 (2020-09-03)
      • Percona Backup for MongoDB 1.3.0 (2020-08-26)
      • Percona Backup for MongoDB 1.2.1 (2020-07-27)
      • Percona Backup for MongoDB 1.2.0 (2020-05-13)
      • Percona Backup for MongoDB 1.1.3 (2020-04-14)
      • Percona Backup for MongoDB 1.1.1 (2020-01-31)
      • Percona Backup for MongoDB 1.1.0 (2020-01-16)
      • Percona Backup for MongoDB 1.0.0 (2019-09-19)
      • Percona Backup for MongoDB 0.5.0 (2019-06-17)
    • Submitting bug reports or feature requests
    • Copyright and Licensing
    • Trademark policy

    • What’s the difference between PBM and mongodump?
    • Why does Percona Backup for MongoDB use UTC timezone instead of server local timezone?
    • Can I restore a single collection with Percona Backup for MongoDB?
    • Can I backup specific shards in a cluster?
    • Do I need to stop the balancer for PITR restore?

    FAQ¶

    What’s the difference between PBM and mongodump?¶

    Both Percona Backup for MongoDB and mongodump are ‘logical’ backup solutions and have equal performance for non-sharded replica sets. However, as opposed to mongodump, Percona Backup for MongoDB allows you to achieve the following goals:

    • make consistent backups and restores in sharded clusters
    • backup / restore both the whole data set and specific namespaces - databases and collections (See Selective backup and restore for more information)
    • restore your database to a specific point in time

    • run backups / restores on each replica set in parallel while mongodump runs in one process on mongos node.

    Why does Percona Backup for MongoDB use UTC timezone instead of server local timezone?¶

    pbm-agents use UTC time zone by design. The reason behind this is to avoid user misunderstandings when replica set / cluster nodes are distributed geographically in different time zones.

    Starting with version 2.0.1, you can change the time zone for pbm logs output.

    Can I restore a single collection with Percona Backup for MongoDB?¶

    Yes. Starting with version 2.0.0, you can restore a single collection with Percona Backup for MongoDB. This functionality is available for logical backups and restores only. To learn more, see Selective backup and restore.

    Can I backup specific shards in a cluster?¶

    No, since this would result in backups with inconsistent timestamps across the cluster. Such backups would be invalid for restore.

    Percona Backup for MongoDB backs up the whole state of a sharded cluster and this guarantees data consistency during the restore.

    Do I need to stop the balancer for PITR restore?¶

    Yes. The preconditions for both Point-in-Time Recovery restore and regular restore are the same:

    1. In sharded cluster, stop the balancer

    2. Make sure no writes are made to the database during restore. This ensures data consistency.

    3. Disable Point-in-Time Recovery if it is enabled. This is because oplog slicing and restore are exclusive operations and cannot be run together. Note that oplog slices made after the restore and before the next backup snapshot become invalid. Make a fresh backup and re-enable Point-in-Time Recovery.

    Contact Us

    For free technical help, visit the Percona Community Forum.

    To report bugs or submit feature requests, open a JIRA ticket.

    For paid support and managed or consulting services , contact Percona Sales.


    Last update: February 21, 2023
    Created: February 21, 2023
    Back to top
    Percona LLC and/or its affiliates, © 2023
    Made with Material for MkDocs

    Cookie consent

    We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. With your consent, you're helping us to make our documentation better.