Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


aide_synology

AIDE - integrity check files on NAS share

  • Read the manual!
  • Install AIDE on CentOS 7
    yum install aide
  • Configure chrony (or ntpd)
  • Configure AIDE /etc/aide.conf
    @@define DBDIR /var/lib/aide
    @@define LOGDIR /var/log/aide
    
    database=file:@@{DBDIR}/aide.db.gz
    
    database_out=file:@@{DBDIR}/aide.db.new.gz
    
    gzip_dbout=yes
    
    verbose=5
    
    report_url=file:@@{LOGDIR}/aide.log
    report_url=stdout
    
    
    
    NAS = s+sha256
    
    /mnt/nas/ NAS
    !/mnt/nas/.*@eaDir.*
    !/mnt/nas/.*\.AppleDouble.*
    !/mnt/nas/.*\.DS_Store.*
    !/mnt/nas/.*Network\ Trash\ Folder.*
    !/mnt/nas/.*Temporary\ Items.*
    !/mnt/nas/.*\.TemporaryItems.*
  • Generate new database:
    aide --init
aide_synology.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1