Lock files in bash scripts

https://www.putorius.net/lock-files-bash-scripts.html

rsync, cron