code-dumps/sh/aide-update.sh
2021-12-05 11:24:57 +08:00

6 lines
123 B
Bash

#!/bin/bash
aide -u
mv /var/lib/aide/{aide.db.gz,aide.db.previous.gz}
mv /var/lib/aide/{aide.db.new.gz,aide.db.gz}
aide -C