Uploaded image for project: 'Percona Backup for MongoDB'
  1. Percona Backup for MongoDB
  2. PBM-652

Add a command to delete PITR chunks

Details

    • Improvement
    • Status: Done
    • Medium
    • Resolution: Fixed
    • None
    • 1.6.0
    • None
    • None

    Description

      PITR's extra storage requirements are proportional to the size of the daily oplog. It's possible for that to be larger, even many times larger, than the full size of the database.

      Daily backups being kept for a week or two, or weekly backups being kept for a few months, and monthly backups being kept for 12+1 months are common. Keeping the oplog slices all the way back to that time as well would usually be unnecessary

      For now you can work around this by finding the old files in pbmPitr subdirectory and deleting them. PBM will deal with missing file ranges if it finds any, this won't cause a fatal error.

      But to make it even easier it would be good to add an option to pbm delete-backup to delete just the PITR oplog slices.

      I suggest 'pbm delete-backup --pitr-only [--older-than xxxx]'. Another suggestion was to have a 'pbm delete-pitr' subcommand

      Attachments

        Issue Links

          Activity

            People

              andrew.pogrebnoi Andrew Pogrebnoi
              akira.kurogane Akira Kurogane (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1 day, 3 hours, 50 minutes
                  1d 3h 50m

                  Smart Checklist