How to automate log rotation script using crontab

Поделиться
HTML-код
  • Опубликовано: 10 дек 2024
  • how to setup crontab jobs:
    check crontab service status
    Create a shell script to compress & move to another location.
    configure time and path_of_script in crontab
    Format of crontab:
    min hour date month day/week path_of_script
    0 0 * * * path_of_script - script will execute everyday at 12:00 AM

Комментарии •