Skip to content

Instantly share code, notes, and snippets.

@michael-halim
Created March 15, 2023 05:03
Show Gist options
  • Save michael-halim/49e2350494ab5d40cce6816eccf6df4c to your computer and use it in GitHub Desktop.
Save michael-halim/49e2350494ab5d40cce6816eccf6df4c to your computer and use it in GitHub Desktop.
Useful Cronjob Command

Set Cronjob Timezone

timedatectl set-timezone Asia/Bangkok

Delete Backups File Older Than X Days

find /home/backups -mtime +x_days -name "*.bak" -type f -delete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment