Page 1 of 1

Delete files after backup

Posted: 23 Jan 2023, 19:15
by cirilorochabr
Once again congratulations on the excellent work.
I would like to leave here a suggestion to improve the backups. Here I have a situation where the database generates partial backup files during the day, we are going to compress and copy the backup to a safe place after that.
It happens that we need to clean up the original uncompressed files after compressing the backup and copying it.
All this control we currently do using batch files, if cobian had this type of resource it would be interesting. After the backup is complete, delete the original files.

Re: Delete files after backup

Posted: 23 Jan 2023, 21:17
by cobian
There is a post-backup event for that (Delete source). Use with care.

Re: Delete files after backup

Posted: 24 Jan 2023, 11:09
by cirilorochabr
There really is such an option and I had seen it. However, it does not have any control over the files that will be deleted. In my case it didn't help because I wanted it to delete only the files that were backed up.

Re: Delete files after backup

Posted: 24 Jan 2023, 11:13
by cobian
I understand. I my self execute a batch file as a post-backup event when such a thing is needed.