Trailbot Smart Policy that rolls modified files back to their previous version
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Rollback Smart Policy for Trailbot

This Trailbot Smart Policy rolls back modified files into their previous version.

Use cases

Logs integrity

Log files are designed to be append-only. Removal of individual lines from log files are a clear sign of someone trying to erase traces of illegitimate activity. By adding this policy, you can revert your logs back to previous version in case of unauthorized modification.


This policy accepts the following parameters:

Name Description Default value Required
type Revert only this type of modifications* 'Removal'
allowRotate Absolute path of the folder where you want to store the backup. true
  • In order to avoid crazy loops, you can set a rollback for addition or removal but never for both of them.