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:
- pbm backup
- pbm restore.
any help is appreciated.
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?
@aranjith0 well you should automatically detect what backup you want to use for restoration and pass it to PBM
@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.
Please provide any reference scripts which runs “pbm backup” automatically though shell scripts.