CheckMK – Configuração de Backup e Retenção de Logs

Tempo Estimado: 10 Minutos

Parte 04 – Configuração de backup simples e periodo de retenção de logs

1 – Configuração do Backup

Criação da pasta para armazenamento de backup
mkdir /backup
mkdir /backup/mensal
mkdir /backup/semanal
mkdir /backup/diario

Ajustando as permissões
chmod 777 /backup -R

Criação do Backup Target

Unique ID: Mensal
Title: Mensal
Destination: Local Path /backup/mensal
Not a mountpoint

Unique ID: Semanal
Title: Diario
Destination: Local Path /backup/diario
Not a mountpoint

Unique ID: Diario
Title: Diario
Destination: Local Path /backup/diario
Not a mountpoint

Criação dos Jobs

Unique ID: Mensal
Title: Mensal
Target: Mensal
Schedule: Schedule Execution
Period: At the beggining of every month at day 1
Time of the Day: 01:00  
Compression: Compress-the backed up files

Unique ID: Semanal
Title: Semanal
Target: Semanal
Schedule: Schedule Execution
Period: Every week on Sunday
Time of the Day: 02:00  
Compression: Compress-the backed up files

Unique ID: Diario
Title: Diario
Target: Diario
Schedule: Schedule Execution
Period: Every Day
Time of the Day: 00:00  
Compression: Compress-the backed up files

2 – Configuração da Retenção dos Logs

Limpeza de disco
WATO > Main Menu > Site Management > Automatic disk space Cleanup
Delete files older than > 730 Days
Cleanup abandoned host files older than > 30 Days

Translate »