Andrew Woods

Backport MODE-2587 fix to 4.6.2

MODE-2587 Updates backup and restore to perform the two operations in batches

* Note, only the backup half of the original PR has been ported, not the restore.

Backport MODE-2611 fix to 4.6.2

MODE-2611 Fixes the duplicate export of repository metadata in the backup file