I have 3 replica percona-mongo running in kubernetes cluster and I have multiple backup policies → hourly, daily, monthly and yearly with following configurations →
spec:
allowUnsafeConfigurations: false
backup:
enabled: true
image: ‘percona/percona-backup-mongodb:2.3.0’
pitr:
compressionLevel: 6
compressionType: gzip
enabled: false
serviceAccountName: percona-mongo-sa
storages:
daily-bucket:
s3:
bucket: percona-backups
credentialsSecret: creds
endpointUrl: 'https://storage.googleapis.com'
insecureSkipTLSVerify: false
prefix: daily
region: auto
type: s3
hourly-bucket:
s3:
bucket: percona-backups
credentialsSecret: creds
endpointUrl: 'https://storage.googleapis.com'
insecureSkipTLSVerify: false
prefix: hourly
region: auto
type: s3
monthly-bucket:
s3:
bucket: percona-backups
credentialsSecret: creds
endpointUrl: 'https://storage.googleapis.com'
insecureSkipTLSVerify: false
prefix: monthly
region: auto
type: s3
weekly-bucket:
s3:
bucket: percona-backups
credentialsSecret: creds
endpointUrl: 'https://storage.googleapis.com'
insecureSkipTLSVerify: false
prefix: weekly
region: auto
type: s3
tasks:
- compressionLevel: 6
compressionType: gzip
enabled: true
keep: 48
name: hourly-backup
schedule: 0 */1 * * *
storageName: hourly-bucket
- compressionLevel: 6
compressionType: gzip
enabled: true
keep: 7
name: daily-backup
schedule: 0 6 * * *
storageName: daily-bucket
- compressionLevel: 6
compressionType: gzip
enabled: true
keep: 12
name: monthly-backup
schedule: 0 6 5 * *
storageName: monthly-bucket
- compressionLevel: 6
compressionType: gzip
enabled: true
keep: 48
name: weekly-backup
schedule: 0 6 * * 6
storageName: weekly-bucket
But due to some reason I am only receiving hourly and daily backups.Monthly and Yearly backups are not getting generated. When checked on all 3 replicas backup agent container, they all have either hourly or daily configs from the output of “pbm config” command.
Need some assistance here, if anybody have some idea.