Aller au contenu principal

Pre-Script blocked by Active Protection

Thread needs solution

I just upgraded to ATI 2018.  My backup runs once a day.  It is Custom, Full backup.  Each day, a full backup is done, which adds a new backup file to my backup drive.  I set up a Pre program which is a script that deletes the oldest backup (.tib) file if needed to make room for the new backup file.  This worked perfectly in ATI 2014.

Now, ATI 2018's Active Protection blocks my script from deleting the oldest backup file, which prevents the backup task from running.  I can get around this by modifying the Active Protection settings and unchecking "Protect Acronis True Image files from ransomware."  But I don't want to do that.  I want to protect backup files from ransomware.  I just want Active Protection to allow my script to delete the oldest file.  How can I do that?

I tried setting up exclusions to Active Protection, and specifying the folder with my script, but that didn't work.

0 Users found this helpful

Mike, AAP is working as designed in preventing your script from deleting your older .tib files.  The recommended method for doing this is to use the Automatic cleanup rules in your Backup Scheme settings, bearing in mind that your storage drive should have space to hold one additional full backup file than your cleanup rule allows - this because cleanup only runs after a new full backup has been created successfully (to avoid deleting your only backup).

The approach taken by other users who have wanted to do the same as your script, has been to use the script to turn off the AAP Service at the start of the script, then perform the file deletion before starting the AAP Service again and running the backup task.

See forum post with information from another user on this aspect.