Pbm resync ignore backups

Hello Perconians,

I have used PBM fore sometime and for safety decided to implement the following solution:
backup production BD to S3, copy PBM backups from S3 to staging DB storage and restore it from time to time to check it works. I have linux shell scripts for backup and remove outdated backup.
I faced the following issue:
staging PBM resync ignores some copied prod backups older then 1 month. The point is I delete backups older then 1 month from prod and S3, but copy it to staging daily. During resync PBM restore all the copied from prod backups except the ones older then 1 month.
My question-is it possible that PBM ignore the backups because in PBM database they marked as deleted? How to fix it and force PBM to scan the backup folder and restore everything from the folder?

Hi, have you tried using the --force-resync option? that should refresh the staging DB with the current files from the storage

my bad, forgot to reconfigure and forward pbm to local storage, it was still using S3, applied pbm config --file (with local folder), then --force-resync, done.

Thank you, Ivan.

1 Like