Comment on For people using OpnSense who want some automatic snapshots.
non_burglar@lemmy.world 1 week ago
- I personally wouldn’t be touching /etc/crontab, but adding or editing a tab in /var/cron/tabs.
- I would use ~test~ or just a bash eval instead of mkdir to check for the existence of a directory. Mkdir has backfired on me spectacularly in bash and sh scripts.
- always grep, then sort, then awk. Just as a habit, any other order can make run time long and cause globbing problems.
- good job