Can I know if the backup was successful from a script?

emerika

New Member
Oct 26, 2010
2
0
1
I have a script to manage my backup files. I was traveling when I got an email of a backup problem. I didn't worry because it was just a backup. A few days later I discovered that all my local backups had been deleted by my script. (It assumed new ones were happening and deleted the old ones.)

I need to modify my script such that it doesn't delete old files if there are problems with the new files.

I'm wondering if there is an easy way to tell from a script that the back up finished without errors before I delete the old files.

Thanks
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!