Percona-Lab / mongodb_consistent_backup

A tool for performing consistent backups of MongoDB Clusters or Replica Sets
https://www.percona.com
Apache License 2.0
276 stars 81 forks source link

Add --upload.file_regex parameter #293

Closed dschneller closed 5 years ago

dschneller commented 5 years ago

We have seen cases where due to aborts in earlier steps the upload stage would eagerly upload lots of files that were supposed to go into an archive to S3. This new optional parameter allows specifying a regular expression for file names that actually should be uploaded, regardless of what else might be in the source directory.

For example specify --upload.file_regex='.+\.tar$' to ensure only tars are ever sent.