PBM backup automation

Hello,
I have a requirement to automate Percona backup for mongoDB (PBM) scheduled via crontab.(Shell scripting)

Please provide any reference scripts which runs “pbm backup” automatically without manual intervention.

Planning to automate below actions through scripts:

  1. pbm backup
  2. PITR
  3. pbm restore.

any help is appreciated.

1 Like

How the pbm rrestore can be automated?

pbm restore . have to get backupfilename from the list using ‘pbm list’
then have to pass the filename to the command - “pbm restore <>”

is it possible to accomplish through shell script?

1 Like

@aranjith0 well you should automatically detect what backup you want to use for restoration and pass it to PBM

1 Like

@aranjith0 well you should do this by your own as I don’t know the logic which you need to use to select the appropriate backup and any other details.

1 Like

Please provide any reference scripts which runs “pbm backup” automatically though shell scripts.

2 Likes